Hi, I am trying to communicate with the BMI270 chip with the nRF52840 DK over SPI. I am trying to get the chip_id by performing a dummy read on device start up. However, when I perform a second read to access the chip_id, this is what I get on the SDO (MISO) line. The clock is operating at 2 MHz.
This is what my code looks like broken down into parts:
1. IMU initialization
2. nRF CLI interface command to read chip_id
This is what my SPI initialization looks like:
And here is what my SPI transfer code looks like: