I can confirm that this change fixes the issue. Thank you.
My original code follows the example provided by Bosch. Anyone else following this example will have the same issue. I suggest that the example is updated. There are other errors in the example code which are straightforward to fix. Would you like to open a pull-request with the fixes?
Thanks for the update.
The example code on the Github is ok without any issues. After soft-reset, the code brings BMI088 accel and gyro to normal mode. Then the code loads config file. After the config file is loaded successfully, the code starts to configure accel and gyro respectively. If loading the config file is at the end, then these accel and gyro configurations will be lost. Therefore, the example code is fine.
The example code does not run without issue. The example code results in poor accelerometer noise, and does not compile due to use of definitions (BMI08X_ACCEL_SYNC_DATA_RDY_INT and BMI08X_GYRO_DATA_RDY_INT) that have since been renamed in the API. I am talking about this example code:
The example code is in error according to your own statements:
I do not require further support on this topic but I suggest the example code is fixed so that others do not have the same problem. I am happy to create a pull request if that would be of use.