This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

blend micro SPI

I want to access an SPI-only sensor device from a Blend Micro.

There is a need to avoid collisions between the two uses of the SPI port for the sensor and the nRF chip. I tried testing ble_busy() to see if I could avoid the conflict that way. However, that always comes back with true.

Is there a way to briefly use the SPI port without disabling BLE completely? If not I don't know why the Blend Micro brings out 4 pins for SPI.

This did not get an answer from RedBearLab other than to suggest use of ble_busy(). See redbearlab.zendesk.com/.../68357923-SPI-interference-with-BLE-connection

Parents
  • OK, so you don't have direct control over the REQN pin and have to use API provided by the system.

    From what I can see in the case you quoted, ble_busy() only tell if there is activity with the nRF8001 or not. It doesn't seem that it will hold the REQN line high so you can do other task.

    I guess you would need to test with longer connection interval (for example 1 second) and see if ble_busy still return true or not.

    Again, I'm not the best to answer Arduino and blendmicro, I would suggest you to request help from RedbearLab.

Reply
  • OK, so you don't have direct control over the REQN pin and have to use API provided by the system.

    From what I can see in the case you quoted, ble_busy() only tell if there is activity with the nRF8001 or not. It doesn't seem that it will hold the REQN line high so you can do other task.

    I guess you would need to test with longer connection interval (for example 1 second) and see if ble_busy still return true or not.

    Again, I'm not the best to answer Arduino and blendmicro, I would suggest you to request help from RedbearLab.

Children
No Data
Related