Why It's necessary erase the flash before write in code time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 11:41 AM
When we program the any stm32 mcu, we can choice between erase the memory or no in STM32CubeProgrammer. Why in code time we can't write in flash without erasing the memory?
Solved! Go to Solution.
- Labels:
-
STM32CubeProgrammer
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 12:59 PM
> Why in code time we can't write in flash without erasing the memory?
Because that is a fundamental hardware limitation of FLASH memory.
https://en.wikipedia.org/wiki/Flash_memory#Block_erasure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 12:59 PM
> Why in code time we can't write in flash without erasing the memory?
Because that is a fundamental hardware limitation of FLASH memory.
https://en.wikipedia.org/wiki/Flash_memory#Block_erasure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-29 2:20 PM
Which STM32?
> Why in code time we can't write in flash without erasing the memory?
You can, but if the FLASH was not erased, the write may/will fail.
The option in CubeProgrammer is for the case that you've erased the FLASH some time before the programming, or you are using a brand new never programmed chip (which is erased from factory).
JW
