Programming with OPENOCD openocd -d0 -f ../../openocd/nick_openocd.cfg -c init -c targets -c "reset halt" -c "jtag_khz 500" -c "flash write_image erase unlock bin/getting_started_sam3s_ek_sam3s4-flash.elf" -c "verify_image bin/getting_started_sam3s_ek_sam3s4-flash.elf" -c "reset run" -c shutdown Open On-Chip Debugger 0.5.0 (2011-12-03-10:15) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html debug_level: 0 500 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 srst_only separate srst_gates_jtag srst_open_drain cortex_m3 reset_config sysresetreq TargetName Type Endian TapName State -- ------------------ ---------- ------ ------------------ ------------ 0* sam3.cpu cortex_m3 little sam3.cpu halted target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x61000000 pc: 0x2000003a msp: 0x20002a1c 500 kHz auto erase enabled auto unlock enabled wrote 24576 bytes from file bin/getting_started_sam3s_ek_sam3s4-flash.elf in 1.911682s (12.554 KiB/s) verified 22712 bytes in 1.545846s (14.348 KiB/s) target state: halted target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000003a msp: 0x20002a1c shutdown command invoked