Hi,
I’ve installed openOCD 0.1.0 on my windows machine. I’m using an Olimex openOCD ARM USB JTAG, and a custom LPC2129-based board. The board works, no doubt about it.
Following the recommendation in the documentation, I specified the interface and target files in an openocd.cfg file as follow:
debug_level 3
# Change the default telnet port...
telnet_port 4444
# GDB connects here
gdb_port 3333
# GDB can also flash my flash!
gdb_memory_map enable
gdb_flash_program enable
jtag_speed 3
source [find interface/olimex-arm-usb-ocd.cfg]
source [find target/lpc2129.cfg]
When I run openOCD with this file I get the following output:
C:\projects\EclipseWorkspace\LPC2129_Test>openocd
Open On-Chip Debugger 0.1.0 (2009-01-21-21:15) Release
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
$URL: https://kc8apf@svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src
/openocd.c $
Debug: 6 0 command.c:91 script_command(): script_command - telnet_port
Debug: 7 16 command.c:108 script_command(): script_command - telnet_port, argv[0
]=ocd_telnet_port
Debug: 8 16 command.c:108 script_command(): script_command - telnet_port, argv[1
]=4444
Debug: 10 16 command.c:91 script_command(): script_command - gdb_port
Debug: 11 16 command.c:108 script_command(): script_command - gdb_port, argv[0]=
ocd_gdb_port
Debug: 12 16 command.c:108 script_command(): script_command - gdb_port, argv[1]=
3333
Debug: 14 16 command.c:91 script_command(): script_command - gdb_memory_map
Debug: 15 16 command.c:108 script_command(): script_command - gdb_memory_map, ar
gv[0]=ocd_gdb_memory_map
Debug: 16 16 command.c:108 script_command(): script_command - gdb_memory_map, ar
gv[1]=enable
Debug: 18 16 command.c:91 script_command(): script_command - gdb_flash_program
Debug: 19 16 command.c:108 script_command(): script_command - gdb_flash_program,
argv[0]=ocd_gdb_flash_program
Debug: 20 16 command.c:108 script_command(): script_command - gdb_flash_program,
argv[1]=enable
Debug: 22 16 command.c:91 script_command(): script_command - jtag_speed
Debug: 23 16 command.c:108 script_command(): script_command - jtag_speed, argv[0
]=ocd_jtag_speed
Debug: 24 16 command.c:108 script_command(): script_command - jtag_speed, argv[1
]=3
Debug: 25 16 jtag.c:2620 handle_jtag_speed_command(): handle jtag speed
User : 26 16 command.c:383 command_print(): jtag_speed: 3
Debug: 27 16 configuration.c:88 find_file(): found C:\Program
Files\OpenOCD\0.1.
0\bin\.. /interface/olimex-arm-usb-ocd.cfg
Debug: 29 16 command.c:91 script_command(): script_command - interface
Debug: 30 16 command.c:108 script_command(): script_command - interface, argv[0]
=ocd_interface
Debug: 31 16 command.c:108 script_command(): script_command - interface, argv[1]
=ft2232
Debug: 33 16 command.c:91 script_command(): script_command - ft2232_device_desc
Debug: 34 16 command.c:108 script_command(): script_command - ft2232_device_desc
, argv[0]=ocd_ft2232_device_desc
Debug: 35 16 command.c:108 script_command(): script_command - ft2232_device_desc
, argv[1]=Olimex OpenOCD JTAG
Debug: 37 32 command.c:91 script_command(): script_command - ft2232_layout
Debug: 38 32 command.c:108 script_command(): script_command - ft2232_layout, arg
v[0]=ocd_ft2232_layout
Debug: 39 32 command.c:108 script_command(): script_command - ft2232_layout, arg
v[1]=olimex-jtag
Debug: 41 32 command.c:91 script_command(): script_command - ft2232_vid_pid
Debug: 42 32 command.c:108 script_command(): script_command - ft2232_vid_pid, ar
gv[0]=ocd_ft2232_vid_pid
Debug: 43 32 command.c:108 script_command(): script_command - ft2232_vid_pid, ar
gv[1]=0x15ba
Debug: 44 32 command.c:108 script_command(): script_command - ft2232_vid_pid, ar
gv[2]=0x0003
Debug: 45 32 configuration.c:88 find_file(): found C:\Program Files\OpenOCD\0.1.
0\bin\.. /target/lpc2129.cfg
Debug: 47 32 command.c:91 script_command(): script_command - reset_config
Debug: 48 32 command.c:108 script_command(): script_command - reset_config, argv
[0]=ocd_reset_config
Debug: 49 32 command.c:108 script_command(): script_command - reset_config, argv
[1]=trst_and_srst
Debug: 50 32 command.c:108 script_command(): script_command - reset_config, argv
[2]=srst_pulls_trst
Debug: 51 32 jtag.c:1892 jim_newtap_cmd(): Creating New Tap, Chip: lpc2129, Tap:
cpu, Dotted: lpc2129.cpu, 8 params
Debug: 52 32 jtag.c:1911 jim_newtap_cmd(): Processing option: -irlen
Debug: 53 32 jtag.c:1911 jim_newtap_cmd(): Processing option: -ircapture
Debug: 54 32 jtag.c:1911 jim_newtap_cmd(): Processing option: -irmask
Debug: 55 32 jtag.c:1911 jim_newtap_cmd(): Processing option: -expected-id
Debug: 56 32 jtag.c:2024 jim_newtap_cmd(): Created Tap: lpc2129.cpu @ abs positi
on 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 57 32 target.c:3911 jim_target(): Target command params:
Debug: 58 32 target.c:3912 jim_target(): target create lpc2129.cpu arm7tdmi -end
ian little -chain-position lpc2129.cpu -variant arm7tdmi-s_r4
Debug: 60 47 command.c:91 script_command(): script_command - bank
Debug: 61 47 command.c:108 script_command(): script_command - bank, argv[0]=ocd_
flash_bank
Debug: 62 47 command.c:108 script_command(): script_command - bank, argv[1]=lpc2
000
Debug: 63 47 command.c:108 script_command(): script_command - bank, argv[2]=0x0
Debug: 64 47 command.c:108 script_command(): script_command - bank, argv[3]=0x40
000
Debug: 65 47 command.c:108 script_command(): script_command - bank, argv[4]=0
Debug: 66 47 command.c:108 script_command(): script_command - bank, argv[5]=0
Debug: 67 47 command.c:108 script_command(): script_command - bank, argv[6]=0
Debug: 68 47 command.c:108 script_command(): script_command - bank, argv[7]=lpc2
000_v1
Debug: 69 47 command.c:108 script_command(): script_command - bank, argv[8]=1476
5
Debug: 70 47 command.c:108 script_command(): script_command - bank, argv[9]=calc
_checksum
User : 71 47 command.c:494 command_run_line():
Debug: 73 47 command.c:91 script_command(): script_command - init
Debug: 74 47 command.c:108 script_command(): script_command - init, argv[0]=ocd_
init
Debug: 75 47 openocd.c:144 handle_init_command(): target init complete
Debug: 76 47 ft2232.c:1463 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX
with 'olimex-jtag' layout (15ba:0003)
openOCD just sits there, I can’t even close the command window. Anyhow, I tried to connect with GDB and the connection failed. I tried to telnet and same thing. Eventually I ran netstat -abov and ports 3333 and 4444 are not listening (not even open).
You’ll notice there is no error in the output… It looks like the daemon never gets to start… Any idea what’s going wrong?