Does the flash memory in the STM32 have to be erased first before it is programmed (like with NAND flash chips) ? If yes, does the ST bootloader do this automatically in its ''Write Memory'' command ? Thanks, Phil
Before using ''Write Memory'' command for an address inside the Flash, you have to ensure that the content of that address is 0xFFFF, either by issuing an ''Erase Memory'' command to the Page containing that address or if it has not been changed after the previous Erase. Cheers, STOne-32.
I suspected that, but there is no mention of this in AN2606, so what I am really asking is: Does the Bootloader ''Write Memory'' command do this or do I have to do it first with the ''Erase Memory'' command ? Phil PS: I think someone from ST will have to answer this for me.