01-11-2024 06:27 AM
Hi support team,
We are trying to use our ble mcu to drive bhi 360 via spi interface, but failed to get data back. We have the test few mode on cpol and cpoa with 11and 00 mode. The vdd and vddio both given with 1.8v. The resetn is low, and interrupt line is not controled. Picture attatched is the waveform we send to the bhi 360 via SPI. Is there any different between the required one and our? We have proting the code form coines, eulers.c , to a arm m0 based mcu. Could your give some hint for confurging the spi interface?
best,
jack
Solved! Go to Solution.
01-14-2024 04:16 PM
Hi jack1,
Based on BHI360 sensor API v1.6.0, I uploaded BHI360 example code on STM32 for your reference.
And also uploaded SPI waveform during read BHI360 chip ID for your reference.
To see all detailed SPI waveform, you can install Saleae logic(https://www.saleae.com/downloads) and open "BHI360 without BMM350_SPI waveform.logicdata".
01-19-2024 04:32 AM
HI Robin, Thanks for proving the spi wavefrom. I have made bhi360 wroks on spi mode.
01-19-2024 04:16 PM
Good news, jack1.
01-21-2024 09:23 AM
HI Robin,
I made bhi360 keep running without interrput via spi. I have made the same process as your provided, the process has attached under post.
We have read reg 0x2D, which is returning 0x03, which is confusing me. Is there any key point missing to make the interrupt works?
This the pictrue of the last 0x03 read in the last part of initialitions.
This is the pictrue shows the whole processes of the initialition.
, Best