Hi,
During out bootup sequence there is a short period of time before we hit our bootloader where we need to disable ECC. There are no other flash operations such as write/erase being done during this time. The only thing that needs to be done is to disable ECC. Essentially just this line of code.
Flash0EccRegs.ECC_ENABLE.bit.ENABLE = 0;
Does this code have to be executed out of RAM? Is it safe for this code to be run out of flash given that it's not actually manipulating flash but just disabling ECC?