Skip to main content
Lgarb.1
Associate III
November 6, 2024
Question

STM32G030 write in flash but in different page position each time

Hi, erasing a complete page (2KB) to just write a few bytes is a waste of erase/write cycle. Is there a way to write data in differents part of the page each time? when there is no more space then a page erase should be fired and start over. Is there some implementation of it?

Thanks

This topic has been closed for replies.

1 reply

gbm
Super User
November 6, 2024

Yes, this is called "EEPROM emulation". You may even find an application note on it and a complete software package - just search the ST website.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice