cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030 write in flash but in different page position each time

Lgarb.1
Associate II

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

1 REPLY 1
gbm
Lead III

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