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.
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
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
2022-04-29 02: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