cancel
Showing results for 
Search instead for 
Did you mean: 

RAM code while erasing flash

Giulio Dalla Vecchia
Associate II

Hi all,

I'm trying to execute some code in interrupt mode (blinking a LED) while the MCU (STM32H725) is erasing a flash sector (obviously that is not used by the application). I've moved the vector table to RAM (0x240000000) and also the ISR function, called from an hardware timer, is moved to RAM, but seems that the core is stalled while erasing flash operation is in progress.

I would like to understand if is possibile to execute some code or not, while an erasing flash operation is in progress.

Thanks a lot!

GDV

1 REPLY 1
hs2
Senior

You have to ensure that really ALL code executed is in RAM. You could use the debugger to break into the ISR and step through the complete code to see where it jumps to flash and stalls.