[Logo] Anarduino and HopeRF Community Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics     [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Simultaneous SPI usage of Flash & Radio  XML
Forum Index » Anarduino
Author Message
PaulStoffregen



Joined: 27/07/2014 15:45:39
Messages: 2
Offline

I am working on improvements to the Arduino SPI library, to better manage settings and access to the SPI bus with multiple SPI chips. This work is being done in collaboration with the Arduino developers, to (eventually) become part of the SPI library in future versions of Arduino.

I'm searching for test cases or any programs users have written which regularly access other SPI devices (the S25FL127S flash chip on Anarduino) while the radio might receive data and assert its interrupt request.

This message was edited 1 time. Last update was at 27/07/2014 16:02:44

Rick



Joined: 30/05/2014 22:08:56
Messages: 93
Offline

Hi Paul,
Thanks for the heads up. We're always interested in improving things for our customers. Steve mentioned to me about your blog concerning this, and I also looked it over. I'd be interested in finding out more.
We have thousands of devices out there that use RFM69 with the spansion memory, and also products which share the SPI bus with other types of devices(e.g. accel,gps,bus expanders, and even multiple SPI memory chips. These all seem to play well together, and we have not noticed the issue you have seen. Whether this is an SPI library issue, or even a radio issue, please keep me in the loop on this, and feel free to contact me anytime. For what's it worth, no other customer has expressed to us the issue you have seen on the RFM69. I'm also contacting HopeRF factory engineering to see if they are aware of such a thing. If they have anything useful and relevant to offer, I will certainly follow-up with an additional post.
Best Regards,
-Rick

SadE



Joined: 18/07/2014 06:51:14
Messages: 15
Offline

It's not a bug or HopeRF related.
It's just that if the bus has to be shared, specific considerations have to be made.
Because the communication of the HopeRF module with the AVR relies on a pin interrupt, It could interrupt an already engaged
SPI transaction of another device.
Rick



Joined: 30/05/2014 22:08:56
Messages: 93
Offline

Thanks SadE for your follow-up.

I just contacted HopeRF directly concerning this. They are not aware of any such issue, and no customers have inquired about same.
I like to give everyone the benefit of the doubt, and thus also willing to accept there could be an issue. All things considered, and until proven otherwise, it seems the RFM69 remains cleared for continued use.

However, I do remain quite curious of the conditions and remedy surrounding Paul's claim, and am certainly interested in any forthcoming improvements he might have on the SPI library. If things weren't so busy, I would definitely succumb to further experimentation myself. I hope to hear of the results from Paul's exploration in this, and to reach finality and consensus with others.
SadE



Joined: 18/07/2014 06:51:14
Messages: 15
Offline

An interesting link at HackaDay concerning this problem :
http://hackaday.com/2014/08/01/arduino-spi-library-gains-transaction-support/
 
Forum Index » Anarduino
Go to:   
Powered by JForum 2.1.9 © JForum Team