We're trying to create a bootloader app which is capable of self programming the flash.
We've tried executing the following command:
-erase flash sector
The problem is regarding to all of the command:
In some cases the mcu resets, and RCM state of LOCKUP is detected after reset. If the above mentioned routines are placed somewhere else in the code, this reset may not occurs.
We cannot understand the reason of this, and at this point we've stuck continuing the firmware development.
Can you help us, how should we modify our code, if it is possible?
The above mentioned subroutines are running from program flash.