10-19-2021 10:19 AM
Hi, I have a problem, I am using the sensor in my smartwatch, all settings and initialization were successful, interrupts and functions work, but if I restart the main microcontroller, the functions stop working, and register 0x5F shows an error after initializing the sensor, only power reset helps to start the sensor correctly. How to properly start the sensor after a reset so that this error does not appear?
10-20-2021 09:44 AM
11-04-2021 10:21 AM
Hello Fleshdeck,
During sensor initialization, loading the configuration file should not be repeated. If you need to reinitialize the sensor after your main controller is reset, you need to reset the sensor first and then reinitialize it.
/* BMA4xy softreset */
rslt = bma4_set_command_register(0xB6, dev);
delay...
start reinitializ...
11-26-2021 09:45 AM
12-13-2021 08:56 AM
Hello Fleshdeck,
You should do soft reset and delay for a while before you reinitialize sensor.
You could directly set sensor register value if you want to modify sensor register parameters.