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

nrf5340dk connection to a bosch's bhi260ab

Using the sample code from this earlier devzone post , I've been trying establish communication with from my bosch sensor to my board. I have the code running:   and it's printing that the "spim example" but I'm not getting any confirmation print outs that the device is connecting, or that my test sends hit any error or is receiving any data.

Attached is my project: spi_only.zip

Parents
  • A SPIM device ALWAYS receives data from the slave, even if nothing is connected to it. So you have to look into the data with logging to see what you actually receive (if anything). If that does not help, really, I'd recommend using a logic analyzer to observe what is going on between your MCU and the sensor (at least you can observe if the master is set up correctly). They are dead cheap these days really useful for understanding a symptom in the situation you describe.

Reply
  • A SPIM device ALWAYS receives data from the slave, even if nothing is connected to it. So you have to look into the data with logging to see what you actually receive (if anything). If that does not help, really, I'd recommend using a logic analyzer to observe what is going on between your MCU and the sensor (at least you can observe if the master is set up correctly). They are dead cheap these days really useful for understanding a symptom in the situation you describe.

Children
No Data
Related