Looks like it will let me post now. So here I go.
Great and thanks for the above notes. I’ve made some progress. I was using the TINY because that’s what folks had noted on the forums here. I didn’t notice the TINY version on Olimex site, so I didn’t understand the difference. I can now launch the daemon from a prompt, as shown in this snippet.
C:\>c:\gccfd\openocd\bin\openocd-ftd2xx.exe -f c:\gccfd\projects\lpc2378\armusbocd.cfg -d
Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Debug: 5 0 command.c:432 command_run_line(): script c:\gccfd\projects\lpc2378\armusbocd.cfg
Debug: 6 0 configuration.c:87 open_file_from_path(): opened c:\gccfd\projects\lpc2378\armusbocd.cfg
Debug: 8 0 command.c:432 command_run_line(): telnet_port 4444
Debug: 10 0 command.c:432 command_run_line(): gdb_port 3333
Debug: 12 0 command.c:432 command_run_line(): interface ft2232
Debug: 14 0 command.c:432 command_run_line(): ft2232_device_desc "Olimex OpenOCD JTAG A"
Debug: 16 0 command.c:432 command_run_line(): ft2232_layout "olimex-jtag"
Debug: 18 0 command.c:432 command_run_line(): ft2232_vid_pid 0x15BA 0x0003
Debug: 20 0 command.c:432 command_run_line(): jtag_speed 10
Debug: 21 0 jtag.c:1863 handle_jtag_speed_command(): handle jtag speed
Info: 22 0 options.c:50 configuration_output_handler(): jtag_speed: 10, 10
Debug: 24 0 command.c:432 command_run_line(): reset_config trst_and_srst separate
Debug: 26 0 command.c:432 command_run_line(): jtag_nsrst_delay 200
Debug: 28 0 command.c:432 command_run_line(): jtag_ntrst_delay 200
Debug: 30 0 command.c:432 command_run_line(): jtag_device 4 0x1 0xf 0xe
Debug: 32 0 command.c:432 command_run_line(): daemon_startup reset
Info: 33 0 options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
Debug: 35 0 command.c:432 command_run_line(): target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
Debug: 37 0 command.c:432 command_run_line(): run_and_halt_time 0 30
Debug: 39 15 command.c:432 command_run_line(): working_area 0 0x40000000 0x40000 nobackup
Debug: 41 15 command.c:432 command_run_line(): flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum
Debug: 43 15 command.c:432 command_run_line(): init
Debug: 44 15 openocd.c:102 handle_init_command(): target init complete
Debug: 45 15 ft2232.c:1374 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'olimex-jtag' layout (15ba:0003)
Debug: 46 31 ft2232.c:1463 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 47 31 ft2232.c:1810 olimex_jtag_init(): 80 08 1b
Debug: 48 31 ft2232.c:1853 olimex_jtag_init(): 82 09 0f
Debug: 49 31 ft2232.c:253 ft2232_speed(): 86 0a 00
Debug: 50 46 openocd.c:109 handle_init_command(): jtag interface init complete
Debug: 51 62 jtag.c:1537 jtag_init_inner(): Init JTAG chain
Debug: 52 62 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 53 62 jtag.c:1295 jtag_reset_callback(): -
Debug: 54 62 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 55 62 jtag.c:1295 jtag_reset_callback(): -
Error: 56 62 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: 57 62 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 58 62 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 59 62 jtag.c:1295 jtag_reset_callback(): -
Error: 60 62 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 61 78 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 62 78 jtag.c:1295 jtag_reset_callback(): -
Error: 63 78 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 64 78 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 65 78 jtag.c:1295 jtag_reset_callback(): -
Error: 66 78 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 67 93 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 68 93 jtag.c:1295 jtag_reset_callback(): -
Error: 69 93 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 70 109 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 71 109 jtag.c:1295 jtag_reset_callback(): -
Error: 72 109 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 73 125 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 74 125 jtag.c:1295 jtag_reset_callback(): -
Error: 75 125 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: 76 125 jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Debug: 77 125 jtag.c:1581 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR
Debug: 78 125 jtag.c:996 jtag_add_reset(): SRST line released
Debug: 79 125 jtag.c:1015 jtag_add_reset(): TRST line asserted
Debug: 80 125 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 81 125 jtag.c:1295 jtag_reset_callback(): -
Debug: 82 125 jtag.c:992 jtag_add_reset(): SRST line asserted
Debug: 83 125 jtag.c:1015 jtag_add_reset(): TRST line asserted
Debug: 84 125 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 85 125 jtag.c:1295 jtag_reset_callback(): -
Debug: 86 125 jtag.c:992 jtag_add_reset(): SRST line asserted
Debug: 87 125 jtag.c:996 jtag_add_reset(): SRST line released
Debug: 88 125 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 0, high_output: 0x00, high_direction: 0x0f
Debug: 89 328 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x02, high_direction: 0x0f
Debug: 90 328 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x03, high_direction: 0x0f
Debug: 91 531 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x01, high_direction: 0x0f
Debug: 92 921 jtag.c:1537 jtag_init_inner(): Init JTAG chain
Debug: 93 921 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 94 921 jtag.c:1295 jtag_reset_callback(): -
Debug: 95 921 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 96 921 jtag.c:1295 jtag_reset_callback(): -
Error: 97 937 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: 98 937 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 99 937 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 100 937 jtag.c:1295 jtag_reset_callback(): -
Error: 101 937 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 102 937 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 103 937 jtag.c:1295 jtag_reset_callback(): -
Error: 104 937 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 105 953 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 106 953 jtag.c:1295 jtag_reset_callback(): -
Error: 107 953 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 108 968 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 109 968 jtag.c:1295 jtag_reset_callback(): -
Error: 110 968 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 111 984 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 112 984 jtag.c:1295 jtag_reset_callback(): -
Error: 113 984 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 114 1000 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 115 1000 jtag.c:1295 jtag_reset_callback(): -
Error: 116 1000 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: 117 1000 jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Debug: 118 1000 openocd.c:126 handle_init_command(): flash init complete
Debug: 119 1000 openocd.c:130 handle_init_command(): NAND init complete
Debug: 120 1000 openocd.c:134 handle_init_command(): pld init complete
Debug: 121 1015 gdb_server.c:2036 gdb_init(): gdb service for target arm7tdmi at port 3333
Debug: 123 1015 command.c:432 command_run_line(): reset
Debug: 124 1015 target.c:1851 handle_reset_command(): -
Debug: 125 1015 ft2232.c:253 ft2232_speed(): 86 0a 00
Debug: 126 1015 jtag.c:1581 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR
Debug: 127 1015 jtag.c:996 jtag_add_reset(): SRST line released
Debug: 128 1015 jtag.c:1015 jtag_add_reset(): TRST line asserted
Debug: 129 1015 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 130 1015 jtag.c:1295 jtag_reset_callback(): -
Debug: 131 1015 jtag.c:992 jtag_add_reset(): SRST line asserted
Debug: 132 1015 jtag.c:1015 jtag_add_reset(): TRST line asserted
Debug: 133 1015 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 134 1015 jtag.c:1295 jtag_reset_callback(): -
Debug: 135 1015 jtag.c:992 jtag_add_reset(): SRST line asserted
Debug: 136 1015 jtag.c:996 jtag_add_reset(): SRST line released
Debug: 137 1015 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f
Debug: 138 1218 ft2232.c:1037 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x0a, high_direction: 0x0f
Debug: 139 1218 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x0b, high_direction: 0x0f
Debug: 140 1421 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug: 141 1812 jtag.c:1537 jtag_init_inner(): Init JTAG chain
Debug: 142 1812 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 143 1812 jtag.c:1295 jtag_reset_callback(): -
Debug: 144 1812 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 145 1812 jtag.c:1295 jtag_reset_callback(): -
Error: 146 1828 jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc
.
Error: 147 1828 jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 148 1828 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 149 1828 jtag.c:1295 jtag_reset_callback(): -
Error: 150 1828 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 151 1843 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 152 1843 jtag.c:1295 jtag_reset_callback(): -
Error: 153 1843 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 154 1843 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 155 1843 jtag.c:1295 jtag_reset_callback(): -
Error: 156 1843 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 157 1859 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 158 1859 jtag.c:1295 jtag_reset_callback(): -
Error: 159 1859 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 160 1875 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 161 1875 jtag.c:1295 jtag_reset_callback(): -
Error: 162 1875 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Debug: 163 1890 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST)
Debug: 164 1890 jtag.c:1295 jtag_reset_callback(): -
Error: 165 1890 jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: 166 1890 jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Appears I now have the daemon up and running. Would appear there are still problems. I don’t think Error notes are normal. Here’s the armusbocd.cfg config file that produced this.
#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 10
#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst separate
#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 <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x40000 nobackup
#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum
# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger
Basically the only change is that the JTAG speed from 50 to 10. Now that it appears to be up and running, I open another cmd prompt and fire off this command.
c:\> telnet 127.0.0.1 4444
Which brings me to this prompt, where I request a scan.
Open On-Chip Debugger
> scan_chain
0: idcode: 0x00000000 ir length 4, ir capture 0x1, ir mask 0xf, current instruct
ion 0xf
> targets
0: arm7tdmi (little endian), state: unknown
>
I’m assuming the above is actually data from the scanned buss, not simply spit back from the config file. The above matches the config file, well mostly matches. What’s up with the IDCODE, should it be 0? I was starting to feel like this should be working. So I close both the cmd windows making sure it kills the daemon, then fire up eclipse, and launch the debugger per CD instructions, selecting the straight up OCD option. Here is what I get in the console window.
Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 10, 10
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
Error: jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Error: jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Error: jtag.c:1351 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: jtag.c:1556 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1444 jtag_validate_chain(): Error validating JTAG scan chain, IR mismatch, scan returned 0x3f
Error: jtag.c:1565 jtag_init_inner(): Could not validate JTAG chain, exit
Seems to be working about the same as I found on the cmd prompt and appears to still have issues. I’m also still getting the gdb issues, I believe the JTAG isn’t configured right, but don’t know what might be wrong.
I’m still baffled and learning the lower level details about OpenOCD and Eclipse. I’m sure there has to be some config problem, I just don’t know what it is. I also tried blazing a trail, still no blinking LED.