01-31-2024 01:35 AM - edited 01-31-2024 01:37 AM
I cannot initialize and upload the configuration into the BMI270 configuraiton file. My BMI270 is connected to SP1, and CS is at GPIOA4.
I tried to develop my own drivers but failed, and now using a code example from a bosch forum moderator, and still can't make it run, I ran out of ideas.
Logs:
Error [-9] : Configuraiton load error. It occurs when failure observed while loading the configuration into the sensor
I attached the project code.
02-01-2024 01:12 PM
Hi Mattieu,
Could we know your hardware schematic?
Could you get BMI270 chid ID via SPI?
02-01-2024 07:28 PM - edited 02-03-2024 07:31 PM
02-04-2024 04:19 PM
There must be something wrong with the CHIP_ID read section, since I could get the correct chip_id using a custom code ?
Also maybe the SPI has a maximum burst length, sending the 8K config bytes at once ?
05-30-2024 10:49 AM
Hi Mattieu,
We can't find hardware schematic in your link. Make sure you BMI270 hardware schematic is correct with data sheet.
Also make sure SPI driver on host can work well, and try it again to read correct Chip ID.
The configuration file can be segmented for transmission, for example, the following is the segment length setting in the BMI270 example code.
/*! Macro that defines read write length */
#define READ_WRITE_LEN UINT8_C(46)