Skip to main content
Gpeti
Senior
October 7, 2019
Question

Load code in RAM directly from STM32CubeIDE through STLink

  • October 7, 2019
  • 1 reply
  • 3435 views

I want to load a piece of software directly to the STM32H7 internal RAM. I precise that I don't want to load some code in Flash and copy it into Flash at runtime, I want to load directly to the part's RAM.

I've linked my executable to map the function in RAM. I checked it is correctly mapped by readelf and I also converted the .elf to .hex to check manually that there is indeed some code located @ 0x24000000.

When I load the .elf through STM32CubeProgrammer I can see that the RAm is correctly loaded.

But when I load through STM32CubeIDE (by launching a debug session, using ST GDB server) the RAM is not loaded.

Is there a setup I am missing ? Or is it a known limitation of the IDE or ST GDB server ?

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
October 7, 2019

Other tools require loading via debugger script, or command line of the debugger. Check docs.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Gpeti
GpetiAuthor
Senior
October 7, 2019

I'm sorry, I didn't understand what you mean. Do you mean that I have to load my software from the IDE but with a debugger script ?