2024-05-10 10:02 PM
I'm aiming to store data persistently in flash memory on an STM32 microcontroller. I've created a struct to hold the data, but I'm facing challenges with:
Solved! Go to Solution.
2024-05-11 12:06 AM - edited 2024-05-11 12:07 AM
https://www.st.com/en/embedded-software/x-cube-eeprom.html
Older:
For more on this, see recent threads:
https://community.st.com/t5/stm32-mcus-products/store-values-in-internal-flash/m-p/666974
2024-05-11 12:06 AM - edited 2024-05-11 12:07 AM
https://www.st.com/en/embedded-software/x-cube-eeprom.html
Older:
For more on this, see recent threads:
https://community.st.com/t5/stm32-mcus-products/store-values-in-internal-flash/m-p/666974
2024-05-11 12:38 AM
And big struct is bad choice, minimum change require write full new struct.
For STMs without ECC on flash is optimal 16bit struct and 16bit marker or 24:8 for one word writes.
For ECC is limit to one write in ECC segment then is good use full segment ...
Too sector is on every MCU parsed differently. Most M0 have many little sectors, but M4 for example have
4x16k - 64k - 128kxN ...