2019-02-28 02:02 PM
The code in bootloader does unlock and lock wrp for certain blocks in both the bank of internal flash which corresponds to application code.
Sadly these calls are done not at the beginning and end of the code but at different states in the code logic.
As the call with FLASH_CR_OBL_LAUNCH result in a reset, some of the states are getting repeated. Since the bootloader code is not upgradable, one work around is to do something from application code.
So if it is possible to avoid reset of bootloader code during the mentioned call, then things should work smoothly.
So I was wondering if there is any option to avoid reset due to FLASH_CR_OBL_LAUNCH call. Or enable/ disable the OBL reset with some system level flag registers