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?
Linux Mint 21
Simplicity Studio 220.127.116.11
EFR32BG22 Custom Board
bmi270.c contains the function bmi270_init() and the array bmi270_config_file.
Hope that helps.