2024-10-18 12:33 AM
Rather than resurrecting this thread, that never got a decent reply anyway, I will start a new one.
I'm working on a design with an STM32L072, where I use the internal EEPROM to store about two dozen parameters. These parameters are all initialised in my code, but when I load the debugger, their values are not loaded and remain all 0's.
As these parameters control the functionality of the device, this is extremely annoying. Doubly so because it is also not possible to edit these values in the debugger (contrary to f.e. STM8L151 / Visual Develop).
STM32CubeIDE
Version: 1.16.1
Build: 22882_20240916_0822 (UTC)
OS: Windows 11, v.10.0, x86_64 / win32
Java vendor: Eclipse Adoptium
Java runtime version: 17.0.11+9
Java version: 17.0.11
2024-10-18 12:44 AM
Is the EEPROM data described in your .ELF file? Inspect with OBJDUMP or similar tools, or export as a .HEX and pull into an editor and inspect.
Is it annoying enough that your code can see they are not initailized, and simply write default values, or provide some user interface or monitor to allow direct configuration and setting?
2024-10-18 01:07 AM
Yes, the EEPROM data is in the .elf. My current workaround is to first program the controller through CubeProgrammer, which does load the EEPROM, then start my debugging.
The current UI is an IR remote, which takes 10~15 seconds per parameter; way too slow to set all of them.
2024-10-18 01:35 AM
Sounds like that would be hard to troubleshoot in the field. If app determines its on a blank device, it should write a workable set of defaults.
STs tools should be using Cube Programmer to upload out of the gate. @STTwo-32
2024-10-24 02:29 AM
The issue at hand is not "troubleshooting in the field", but rather the tools not working properly.
I'm a bit miffed that nobody at ST seems to take any interest in this.
2024-10-25 02:26 PM
Because your description of the problem does not look actionable. Imagine that your post is a question of somebody else and you are answering. Do you have enough information? What is missing?