2008-04-21 11:05 AM
Flash Erase Stall
2011-05-17 03:31 AM
Page 9 of the STM32 Flash Programming Manual (PM0042) says:
...code or data fetches cannot be made while a write/erase operation is ongoing. Is there any way to erase a page of flash without stalling all execution for up to 40ms (or write a word to flash without stalling up to 70us)? All I could think of is perhaps running everything from RAM and avoiding accessing any constant data (not very practical). Does this also mean that the flash interrput is pretty much useless for anything but WFI?2011-05-17 03:31 AM
> All I could think of is perhaps running everything from RAM
that's right. > and avoiding accessing any constant data (not very practical). you can place both code and const data on RAM with the proper linker script. > Does this also mean that the flash interrput is pretty much useless for anything but WFI? why? the vector table and relevant handlers can be placed in RAM too.