Hi,
I am trying to get Eclipse,Yagarto tools, OpenOCD and Olimex openOCD to work together.
I followed the step by step tutorial on Yagarto to setup my environment.
I can properly connect to the Olimex JTAG (or I believe I do):
Open On-Chip Debugger (2008-06-19 19:00) svn: 717
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Info: options.c:50 configuration_output_handler(): jtag_speed: 8, 8
I use the following configuration file:
#daemon configuration
telnet_port 4444
gdb_port 3333
# tell gdb our flash memory map
# and enable flash programming
gdb_memory_map enable
gdb_flash_program enable
#interface
interface ft2232
#ft2232_device_desc “Olimex OpenOCD JTAG A”
ft2232_device_desc “Olimex OpenOCD”
ft2232_layout “olimex-jtag”
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 8
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst
#LPCs need reset pulled while RTCK is low. 0 to activate JTAG, power-on reset is not enough
jtag_reset 1 1
jtag_reset 0 0
#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
#target arm7tdmi
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
working_area 0 0x40000000 0x4000 nobackup
#flash bank lpc2000 0 0 <target#>
flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 14765 calc_checksum
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.ph … p+Debugger
I used arm-elf-gdb.exe to debug. It’s configured as follow:
target remote localhost:3333
monitor reset
monitor wait 500
monitor soft_reset_halt
monitor arm7_9 force_hw_bkpts enable
When I start the debugger I get the following error message:
localhost:3333: No connection could be made because the target machine actively refused it.
Which seems appropriate since netstat does not show any process listening on port 3333.
Isn’t the openOCD (that seems to run without errors) supposed to listen on 3333? I thought this was properly set in the configuration file… Do I need to start anything else?