Hello All,
Here is my 0.4.0 OpenOCD .cfg file.
#daemon configuration
telnet_port 4444
gdb_port 3333
REFERENCE: http://www.olimex.com/dev/arm-usb-tiny.html
interface ft2232
ft2232_serial 0x03
ft2232_device_desc “Olimex OpenOCD JTAG ARM-USB-TINY-H”
ft2232_layout “olimex-jtag”
ft2232_vid_pid 0x15BA 0x002a
jtag_khz 500
LPC2888 Target related
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME lpc2888
}
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {
set _ENDIAN little
}
#set _CPUTAPID 0x00000000
if { [info exists CPUTAPID ] } {
set _CPUTAPID $CPUTAPID
} else {
force an error till we get a good number
set _CPUTAPID 0x00000000
}
Define the _TARGETNAME
set _TARGETNAME [format “%s.cpu” $_CHIPNAME]
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst
jtag_ntrst_delay 200
jtag_nsrst_delay 200
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
#target arm7tdmi
target create $_TARGETNAME arm7tdmi -chain-position $_TARGETNAME -endian little -variant arm7tdmi-s_r4
working_area 0 0x00400000 32768 nobackup
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x0038000 -work-area-size 0x8000 -work-area-backup 0
flash bank lpc288x 0 0 0 0 $_TARGETNAME 12000000
scan_chain
jtag_reset 0 0
init
halt
#mww 0x80004060 1
#mww 0x80004064 1
#mww 0x80104018 130
#mww 0x80104008 1
#mww 0x80104004 6
#flash protect 0 0 21 off
#flash erase_sector 0 0 21
write elua to device
#flash write_bank 0 elua.bin 0
reset
shutdown
Unfortunately I cannot get OpenOCD to find the FTDI device. Debug info below
Debug: 82 27 ft2232.c:2023 ft2232_init_libftdi(): ‘ft2232’ interface using libftdi with ‘olimex-jtag’ layout (15ba:002a)
Error: 83 28 ft2232.c:2042 ft2232_init_libftdi(): unable to open ftdi device: device not found
Debug: 84 28 command.c:444 run_command(): Command failed with error code -100
User : 85 28 command.c:646 openocd_jim_vfprintf(): Runtime error, file “lpc2888.cfg”, line 59:
User : 86 28 command.c:646 openocd_jim_vfprintf():
I know VID & PID are right (used USBviewer to check).
I have tried a wide range of device_desc but nothing works.
I have issues getting FTDI certified drivers to load under Vista.
can you advise what drivers and OS you are working under?
Thanks,
Ernest