06-21-2022 11:37 PM
Hello Bosch team,
I'm using a BHI260AB hosted by an STM32 micro communicating over SPI. I want to upload the BHI firmware and boot from RAM.
For accomplishing that, I've used the API offered in: https://github.com/BoschSensortec/BHY2-Sensor-API
I based my implementation on the example: https://github.com/BoschSensortec/BHY2-Sensor-API/tree/master/examples/load_firmware
But unfortunately, after successfully transferring the firmware over SPI, the boot from RAM process fails. More specifically, the API function bhy2_hif_check_boot_status_ram() times out.
Checking the register 0x25 (Boot Status register), the value is 0b01111000. Where the bit6 is Firmware Verify Error. So the firmware verification is throwing an error.
Here's a link from where you can download my code: https://drive.google.com/file/d/1cF9MUF7viVbqwoKUXT2Wzcf6CpWkPVY_/view?usp=sharing
For the BHI firmware, I used the one that is located at: https://github.com/BoschSensortec/BHY2-Sensor-API/blob/master/firmware/bhi260ab/Bosch_SHUTTLE_BHI260...
My implementation is in the file called bhi260ab.c
Could you please help me to understand what could be the issue?
07-05-2022 07:59 AM
Hi btruden_henway,
Did you connect R21, R24, and disconnect R22, R23?
You can step debug where got the failed information.
07-05-2022 03:21 PM
Hello BSTRobin,
Yes, exactly. I did the resistor modifications. I think there should be some other issue (maybe related to the hardware).
Thanks
07-06-2022 03:57 AM
Hi btruden_henway,
If you have BHI260AB shuttle board, you can run example code with it and compare the difference with your board.