Re: To the Atmel ARM gurus: Problems with OpenOCD Message #2 Posted by Scott Newell on 6 Apr 2011, 9:02 p.m., in response to message #1 by Marcus von Cube, Germany
Here's an example of my OpenOCD config (note I'm using a different JTAG dongle):
interface ft2232
target arm7tdmi little reset_run 0 arm7tdmi
jtag_device 4 0x1 0xf 0xe
jtag_speed 0x8
ft2232_layout evb_lm3s811
ft2232_device_desc "LM3S811 Evaluation Board A"
ft2232_vid_pid 0x0403 0xbcd9
working_area 0 0x2ff000 0x1000 nobackup
flash bank at91sam7 0 0 0 0 0
I ended up either using SAM-BA to burn flash, or running a little OpenOCD script to burn a sector at a time. It looked something like:
soft_reset_halt
load_image page-000.bin 0x100000 bin
mww 0xffffff64 0x5a000003 # command flash controller to erase/burn
sleep 10
load_image page-001.bin 0x100100 bin
mww 0xffffff64 0x5a000103 # command flash controller to erase/burn
sleep 10
...
load_image page-070.bin 0x104600 bin
mww 0xffffff64 0x5a004603 # command flash controller to erase/burn
sleep 10
verify_image test.bin 0x100000 bin
Pretty hacky, I know. Somewhere I've got a little windows program to build those .bin files if you need it.
Obviously on the 12C+, I was just doing crash and burn debugging with SAM-BA directly (no JTAG pins, no need for OpenOCD).
|