RAM code while erasing flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-01 4: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
- Labels:
-
Flash
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-01 6: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.
