04-03-2023 04:50 PM
Hello,
I am trying to initalize the BMI270 with CY8C4024AXI with the SPI interface. I get the right Chip_ID and i can write the config file from the API but i always get the error code 0xF7 from the internal status register (0x21). This is a compat_error but i did not find much information about this error.
I have also checket the first read and write before the config file and that are ok ( i compared it with a initialization sequence that i found in this forum).
I have attached my code.
Thanks
Julian
04-04-2023 03:36 AM
Hi JulianGra,
For you code, you can read 0x21 register after sensor initialization.
In bmi270_init() function, it will call bmi2_soft_reset() to perform soft-reset to bring all register values to their default values.
04-04-2023 09:57 AM
Hi BSTRobin,
Sry i made a mistake. I am getting 0x00 (not_init) back of the internal register after writing the config file.
04-11-2023 08:20 AM
Hello
I have tried to increase the time after writing the config file and i have tried to ask request the internal status again. But it did not helped.
Did anyone has another solution or a example code for a cypress controller.
Thanks
Julian
05-05-2023 08:30 AM - edited 05-05-2023 08:35 AM
Hi JulianGra,
See it from you previous code, you are using BMI270 base version software. I uploaded example code on STM32 for your reference.