cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f407 sram boot in linux

morecode_morecode
Associate
Posted on October 19, 2014 at 22:01

Hi,

I have loaded and run apps in sram using keil environment. I am working my way into linux, but i am not able to use the same feature, i have tried to load an .elf file using st-utils, openocd. but so far there is no luck,

Has anybody succeed in loading an application in sram using linux command tools? not debuging, just run it from ram. could you please share some information?

Kind Regards.

 

#linker-script #st-util #openocd
1 REPLY 1
Posted on October 19, 2014 at 22:40

Well can't give exact advise.

Check that your linker script is defining sections in RAM for the code to use, starting at 0x20000000, make sure that doesn't clash with other regions used for variables. Check the placement with the .MAP file

If you make a small loader application that is flashed into the device, you could use that to receive .HEX files sent via a serial port, and load/execute them in RAM.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..