08-15-2023 08:07 AM
I'm using a chip with very small memory and can't afford the 8k to load the intialization file. I've tried loading the initialization file from `bmi270_maximum_fifo.c` but the status register 0x21 return a 0x02 (initialization error). After uploading the configuration file, I've checked my I2C driver and it is confirming that 329 bytes have been written. This matches the size of the initialization file in `bmi270_maximum_fifo.c`. What are some other possible causes of this status error?
Also, can someone definitively say - is there a way to configure and read accel and gyro values without loading any configuration file? I've seen mixed answers on the forums.
In case it helps, here is the relevant code snippet:
bmi_write_byte(BMI2_PWR_CONF_ADDR, 0x00); // Power on & disable power save
systick_wait(500);
bmi_write_byte(BMI2_INIT_CTRL_ADDR, 0x00); // init start - prepare config file load
systick_wait(20);
// Download config file to BMI270
bytes_written = bmi_write_bytes(BMI2_INIT_DATA_ADDR, bmi270_config_file, sizeof(bmi270_config_file));
bmi_write_byte(BMI2_INIT_CTRL_ADDR, 0x01); // initialization loaded
08-15-2023 12:30 PM
Hi ByteOff,
A configuration file is required.
You can strictly refer to BMI270 maximum fifo example code: https://github.com/boschsensortec/BMI270-Sensor-API/blob/master/bmi270_max_fifo_examples/accel_gyro/...