12-15-2022 10:28 AM
I have a custom board containing an EF32BG22 and a BMI270 connected via an SPI bus and I am using the BMI270-Sensor-API. When I call bmi270_init() the function correctly recognises the chip ID (from which I conclude that the SPI is working correctly at 1MHz). I load up the standard configuration file, present in the API code, in chunks of anything from 2 to 256 bytes, and at the end, I get an init_err in the INTERNAL STATUS register. I have checked that the configuration file data is present on the bus and in the correct order. I don't have microsecond timer resolution, so my delay function always waits for at least a millisecond. I can't think of any other relevant information.
Any suggestions as to how I can find out what the problem is?
12-15-2022 12:09 PM
Hi arw,
Which example code you refered and what is about your software environment?
12-15-2022 04:37 PM
Linux Mint 21
Simplicity Studio 5.5.2.0
EFR32BG22 Custom Board
https://github.com/BoschSensortec/BMI270-Sensor-API
bmi270.c contains the function bmi270_init() and the array bmi270_config_file[].
Hope that helps.
12-19-2022 08:24 AM