Skip to main content
EAlek.2
Associate
June 3, 2021
Question

How I can run program in SDRAM directly from the debugger?

  • June 3, 2021
  • 4 replies
  • 1339 views

..

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
June 3, 2021

In Keil we'd use a Debugger Script (.INI) which would bring up the clocks, pins, interface and memory chip allowing the debugger to see it, and then download code directly into SDRAM. ie LOAD app2sdram.axf

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
EAlek.2
EAlek.2Author
Associate
June 3, 2021

I would like to work in stm32cubeIDE. But thank you, where I can get app2sdram.axf?

Tesla DeLorean
Guru
June 3, 2021

I'm sure GNU/GDB provides for scripting also. Poking hardware level registers to bring up the external memory interface is not a simple task. Perhaps it would be simpler for you to code that BSP functionality in C, call it via SystemInit() from the startup.s code, and then copy your executable image into SDRAM once that's up and working?

app2sdram.axf was a notional name for the file the linker output for the project

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
EAlek.2
EAlek.2Author
Associate
June 3, 2021

Thank you for information, I will try to find some description GNU/DBG.