BMI270 SPI Init error

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

 

bmi270_code.zip
104.81KB
4 replies