On Sat, Feb 11, 2012 at 2:11 PM, Ken Smith <[email protected]> wrote:
[clip]
> Flashing and debugging with the same
> firmware worked earlier today and mysteriously stopped working.
[clip]

Here's an update. I guess soft_reset_halt doesn't reset the device
properly enough to enable debugging. Also, I added polling. The
combination of things seems to have resolved the problem. Here are
updated files. The files contain some changes which don't pertain to
the fix like flashing the elf file instead of the bin.

openocd.cfg
#interface jlink
source [find interface/olimex-arm-usb-ocd.cfg]
source [find target/at91sam7x256.cfg]
adapter_khz 6000


arm7_9 dcc_downloads enable
gdb_memory_map disable
sam7x256.cpu configure -event gdb-attach {
    echo "resetting the sam7x256"
    reset init
    gdb_breakpoint_override hard
}
EOF

.gdbinit
target remote localhost:3333
symbol-file rtosdemo.elf
monitor poll on

define flash
    #monitor soft_reset_halt
    monitor reset halt
    monitor flash write_image rtosdemo.elf
    symbol-file rtosdemo.elf
end

define reset
    monitor reset halt
end

define flashboot
    monitor at91sam7 gpnvm 2 set
end

document flash
flash: write rtosdemo.elf and reset the processor
end
EOF

   Kindly,
   ks

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to