Skip to main content
RobK1
Associate II
October 18, 2024
Question

EEPROM content not loaded when debugging

  • October 18, 2024
  • 2 replies
  • 1366 views

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

2 replies

Tesla DeLorean
Guru
October 18, 2024

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?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
RobK1
RobK1Author
Associate II
October 18, 2024

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.

Tesla DeLorean
Guru
October 18, 2024

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 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
RobK1
RobK1Author
Associate II
October 24, 2024

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.

Pavel A.
Super User
October 25, 2024

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?