How the best method to save user data on flash's STM32F4 series?
Hi everyone,
I'm handling project on STM32F411CEUx and I have got a trouble with save my setting into internal flash. When I used STM32F1 series, this issue was very easy because the page size was very small than F4 series. In F1, I could use some RAMs to got all the specified structure after then I adjusted the variables that I would to change value and erase all the sector. Finally, I wrote whole back into that page. But I think I can't use this way on F4, the page size of it is very large (e.g 128kb) so it leads to the eraser timing too high and it will be affect to real time of my system. I know that have one method to prevent that problems, it is EMULATION EFFROM. I understood how the way it was implemented. It used the ID to decide the specified variable but I think it has some disadvantages:
- It was be limited number of variable. It have just over 65000 if using 2 bytes ID and absolutely you can only use 2 bytes size for each variables. I know we can change the number of bytes ID and variables to write higher number.
- The main problem I want to ask is here. How about the strings with variable length? I have not yet find the best way to resolve them
Could you give some advice or some algorithm to work better on it?
Thanks so much!
