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

SPI interface Problem in MetaWearCPro with nRF51822.

Hello, Thanks for your reading. I tried to read the CHIP_ID value(0xD1) of BMI160 in MetaWearCPro firmware using SPI. But I could not get the correct value(0xD1). The read value always was 0xFF. I hope that you will help me correctly. Thank you for your time. Best, regards.

  • Too little information here. 0xFF only indicates that the MISO is high during all clock cycles. You are sure all lines (MISO, MOSI, SCK, CS) are connected properly to the device, and that the CS line is used correctly (you can configure the driver to control it or manually control it in the application code)?

    You can connect a logic analyzer or oscilloscope on the lines to see that the nRF sends out the correct signals.

Related