HI,
I'm planning to revise write_config_file() of "https://github.com/BoschSensortec/BMI270-Sensor-API, v2.63.1" as follows:
bmi2_set_adv_power_save(BMI2_DISABLE, dev);
set_config_load(BMI2_DISABLE, dev);
loop
upload_file
read it back
compare them and write again if different
set_config_load(BMI2_ENABLE, dev);
dev->delay_us(150000, dev->intf_ptr);
bmi2_set_adv_power_save(BMI2_ENABLE, dev);
It is because I'm getting BMI2_E_CONFIG_LOAD and I don't know how to solve it. When I checked the SPI packets with logic analyzer, there was no problem.
Would you let me know how to read the config file back over SPI, please?
Is is a good approach?
Thanks,
Hugh
Solved! Go to Solution.
Hello Hugh,
Can you upload logic analyzer log and BMI270 source code here?
In case of log file, if you can upload as excel file, it would be better.
Thanks,
Hi Minhwan,
There is another topic titled "[Question] BMI270 : BMI2_E_CONFIG_LOAD" where I described the source code and excel file.
Thanks,
Hugh
Hi Minhwan,
I thought that "read back and rewrite" is a good idea to solve my problem.
If there is no way to "read back and rewrite", I'll go back to my original initialization problem as you recommend.
Yes, you can close this topic.
Thanks,
Hugh