Dejan,
Your pogram is getting loaded into RAM because that's where you're linking it.
It runs out of flash because that's where it's running from.
If you want to run it out of ram, you'll need to give the "continue" command an
address. You can try typing "continue _start" into GDB.
- Alex
From: Dejan Gjoshevski [mailto:[email protected]]
Sent: Friday, May 18, 2012 10:29 AM
To: [email protected]
Subject: [OpenOCD-devel] KWIKSTIK
J'm truing to use openocd to load some code in RAM memory in kwikstik. J'm
working under Linux OS. When j load some code in RAM memory and write
"continue" command, the kwinstik starts the program from the flash memory. Can
someone tall me how to flash kwikstik, how to debug using eclipse and without
eclipse. Here are the commands that j'm truing to debug with:
openocd -f /usr/local/share/openocd/scripts/interface/jlink.cfg -f
/usr/local/share/openocd/scripts/target/k40.cfg -c "jtag_rclk 100"
in new terminal:
arm-eabi-gdb
target remote localhost:3333
monitor reset
monitor soft_reset_halt
monitor sleep 500
load /...../file.elf
thbreak main
continue
Dejan.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel