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...
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.