Write to flash while running from the same flash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-20 10:43 PM - last edited on 2025-06-21 1:26 AM by Andrew Neil
I am implementing a dual-bank-like firmware architecture on the STM32WLE5CCU6 microcontroller, which does not natively support true dual-bank flash. In this setup, I need to write data to a region of the internal Flash memory that is part of the same memory space from which the code is currently executing. I would like to understand how Flash write operations can be safely performed in such a scenario—specifically, how to write to a different section of the same Flash memory while code execution continues from another region within that same Flash.
- Labels:
-
Bootloader
-
Flash
-
STM32WL series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-08-04 2:59 AM
Hello @jackiee
While writing/erasing into Flash bank then there is not possible to perform any else operation from the same bank (read, execute). But read/execute operation is possible from another bank (if this bank is not under write/erase operation).
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
