STM32G0 out of sequence flash row programming possible?
Hi everyone!
I'm implementing a 4k XMODEM bootloader for the STM32G030F6. The application starts at 0x08001000 (page 2)
I want to erase page 2 (0x08001000 - 0x080017FF) and only program rows 17 to 19 (0x08001100 - 0x080017FF). I want to save row 16 in SRAM and write it last (after the whole application has been written to Flash).
When the XMODEM transfer completes and the FW tries to write row 16 (0x08001000 - 0x080010FF) I get multiple flash errors (PGAERR, PGSERR, FASTERR).
Does this mean that I have to save the whole page in SRAM (not just the row)? Why can't I write a flash row if it has been erased before?
Thanks in advance,
Pieter