Hi, I am newbie to ARM and Open OCD, etc.
I have been working through the jlynch tutorial:
“Using Open Source Tools for SAM7 Cross Development”
OpenOCD is running inside Eclipse using the Zylin CDT (on Windows XP).
I have successfully compiled some example code: “demo_at91sam7_flash_blink” and downloaded the binary to the device: AT91SAM7S256 using the SAM-BA bootloader utility. The program runs and the LED is flashing.
I am using Olimex ARM-USB-OCD with the development board SAM7-P256. I copied the following config file the berlios website:
The following script was used with an Olimex ARM-JTAG-OCD and a AT91SAM7S64 cpu:
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 0
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config srst_only srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target configuration
daemon_startup reset
#target <type> <startup mode>
#target arm7tdmi <endianness> <reset mode> <chainpos> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi
run_and_halt_time 0 30
# flash-options AT91
working_area 0 0x00200000 0x4000 nobackup
flash bank at91sam7 0 0 0 0 0
# Information:
# erase command (telnet-interface) for complete flash:
# flash erase <num> 0 numlockbits-1 (can be seen from output of flash info 0)
# SAM7S64 with 16 lockbits and bank 0: flash erase 0 0 15
# set/clear NVM-Bits:
# at91sam7 gpnvm <num> <bit> <set|clear>
# disable locking from SAM-BA:
# flash protect 0 0 1 off
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
In my eclipse Debug configuration, I have two windows for entering debug commands. In the “Initialise” window I have entered:
target remote localhost:3333
monitor soft_reset_halt
monitor arm7_9 force_hw_bkpts enable
symbol-file main.out
thbreak main
continue
I have left the “Run” window empty.
When I run the debugger configuration, my Console window displays: “(gdb)” and then clears. Eclipse indicates that OpenOCD is running but nothing is happening. There are no breakpoints to view and there is no further output in the console window.
I would be grateful for your advice.
Thanks
Mark
capture.pdf (91.5 KB)