2022-12-01 04:26 AM
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
2022-12-01 06:56 AM
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.