02-16-2021 07:27 AM - edited 02-16-2021 07:28 AM
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.
02-16-2021 08:56 PM - edited 02-16-2021 09:08 PM
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,
02-17-2021 06:37 AM
Hi Minhwan,
There is another topic titled "[Question] BMI270 : BMI2_E_CONFIG_LOAD" where I described the source code and excel file.
Thanks,
Hugh
02-19-2021 11:19 PM
Hello Hugh,
I think your question could be enough in [Question] BMI270 : BMI2_E_CONFIG_LOAD.
Can I close this topic? I will check "[Question] BMI270 : BMI2_E_CONFIG_LOAD"
Thanks,
02-22-2021 01:15 AM
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