I just brought an Olimex USB OCD and a Phytec LPC3180 board.
Using Linux 2.6.22 host
ftdi_sio is loaded
openocd built from svn today
I can’t figure out how to talk to the board.
Board prints 44444 to the serial port when powered on.
LED2 is red, LED3 is green
Info: openocd.c:92 main(): Open On-Chip Debugger (2007-07-15 13:15 CEST)
Debug: arm926ejs.c:700 arm926ejs_target_command(): chain_pos: 1, variant: (null)
Info: configuration.c:50 configuration_output_handler(): Command etm not found
Info: configuration.c:50 configuration_output_handler(): Command etb not found
Debug: jtag.c:1407 jtag_init(): -
Debug: ft2232.c:1420 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'olimex-jtag' layout (15ba:0003)
Debug: ft2232.c:1462 ft2232_init_libftdi(): current latency timer: 2
I added 0x here to get past the spam filter.
Debug: ft2232.c:1729 olimex_jtag_init(): 0x80 0x08 0x1b
Debug: ft2232.c:1772 olimex_jtag_init(): 0x82 0x09 0x0f
Debug: ft2232.c:252 ft2232_speed(): 0x86 0x14 0x00
Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1197 jtag_reset_callback(): -
Debug: jtag.c:1197 jtag_reset_callback(): -
Debug: ft2232.c:1200 ft2232_execute_queue(): statemove: 0
Debug: jtag.c:295 jtag_call_event_callbacks(): jtag event: TRST asserted
Debug: jtag.c:1197 jtag_reset_callback(): -
Debug: jtag.c:1197 jtag_reset_callback(): -
Debug: jtag.c:1028 jtag_build_buffer(): fields[0].out_value: 0x000000ff000000ff
Debug: ft2232.c:1258 ft2232_execute_queue(): DR scan, 640 bit, end in 0
Debug: jtag.c:1063 jtag_read_buffer(): fields[0].in_value: 0xffffffffffffffff
Error: jtag.c:1253 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
#location
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG"
ft2232_layout olimex-jtag
ft2232_vid_pid 0x15ba 0x0003
#ft2232_device_desc "Amontec JTAGkey"
#ft2232_serial AMTJKV31
#ft2232_serial T1P3S2W8
#ft2232_layout jtagkey
#ft2232_vid_pid 0x0403 0xcff8
jtag_speed 20
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#target configuration
daemon_startup attach
#target <type> <endianess> <reset mode>
target arm926ejs little reset_halt 1
#arm7_9 etm <target>
arm7_9 etm 0
#arm7_9 etb <target> <chain_pos>
arm7_9 etb 0 0
#target_script 0 reset csb337_init.script
#working_area 0 0x20000000 0x4000 nobackup
#flash configuration
#flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
#nand configuration
#nand device <controller> [controller specific arguments]
nand device lpc3180 0 13000