2018-06-13 09:09 AM
https://community.st.com/tags♯/?tags=stm32cubemx.
‌https://community.st.com/tags♯/?tags=eeprom%20emulation
I'm adding emulated EEPROM support to a project that is being built with the STM32F429ZITx processor. I am able to include the sample code, and I am able to get it to work, but the only way I am able to preserve the data after loading a newly built version (i.e. flashing a new image through the debugger) is to manually modify the flash.ld file to carve out a sector for EEPROM:
MEMORY
{RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192KCCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64KVECTOR (rx) : ORIGIN = 0x8000000, LENGTH = 16KEEPROM (rx) : ORIGIN = 0x8004000, LENGTH = 48KFLASH (rx) : ORIGIN = 0x8010000, LENGTH = 1984K}The issue I have is that every time I run the STM32CubeMX software to re-generate the code, it overwrites my changes. Is there any configuration option in the cube software (Version 4.25.0) that will allow me to specify that I have an EEPROM section, and where I want to put it so that it doesn't overwrite it each time?
#stm32cubemx. #eeprom-emulation2018-06-14 08:44 AM
I have a little follow up - my original post wasn't quite correct. If I have modified the .ld file with the necessary changes and leave it in the folder, then the changes are indeed preserved. But if I rename it and give it a new extension (something like .bak), then my .bak file is removed and a new one is created without the changes. So once the manual changes are made, it looks like they will be kept, but it still would be nice to have the cube tool have an option to allow the user to configure an emulated eeprom section so that they don't need to figure out how to modify the .ld file manually
2018-09-05 09:15 AM
Hi @Mike Jackson
You will be able to add and configure additional memories through STM32CubeMX GUI in a coming release.
2022-04-28 10:46 PM
Is there any progress yet?
In the CubeMX tool integrated in the CubeIDE I can't find any configuration possibilities for additional memories. Furthermore it's not possible to add the X-CUBE-EEPROM expansion to a project with the "Software Packs" option of CubeMX to emulate EEPROM on a STM32L4 device.
Am I right or did I miss something?
2022-05-18 01:06 PM
bump. Wondering the same thing. I can't tell if emulated eeprom is a cubemx feature or not.
2022-05-18 02:10 PM
I found this which seems to solve the issue: https://medium.com/teamarimac/stm32-flash-programming-3418bf09231c