cancel
Showing results for 
Search instead for 
Did you mean: 

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

EAlek.2
Associate II
 
4 REPLIES 4

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
Up vote any posts that you find helpful, it shows what's working..
EAlek.2
Associate II

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

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
Up vote any posts that you find helpful, it shows what's working..
EAlek.2
Associate II

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