Search code examples
stm32flash-memory

stm32 flash half page writing


When I perform half page write from flash memory to flash memory on stm32 microcontroller do I need a RAM buffer to keep those read values and then write them? I mean that I have 2 separate flash areas and I want to copy some data from 1st area to the 2nd one. And do I need to create buffer and firstly read one phalf page and then write it or can I do it simultaneously?

EDIT: I want to perform flash page copy - copy a block of memory in flash to different address also in flash


Solution

  • The answer is that I need to cope data to temporal buffer first, because while writing to flash, reading operation is stalled, so there is no way to read from different page.