2014-10-19 01:01 PM
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 #openocd2014-10-19 01:40 PM
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.