Hello List,
the ftd2xx build with a JTAGkey will not work with a STR710 CPU.
Attached is the log file, tested under WindowsXP
But the ftdi version is working here, strange!!
Best regards,
Michael
Debug: 10 0 configuration.c:83 find_file(): found .\prj\jtagkey.cfg
Debug: 12 0 command.c:68 script_debug(): command - telnet_port
Debug: 13 0 command.c:77 script_debug(): telnet_port - argv[0]=ocd_telnet_port
Debug: 14 0 command.c:77 script_debug(): telnet_port - argv[1]=4444
Debug: 16 0 command.c:68 script_debug(): command - gdb_port
Debug: 17 0 command.c:77 script_debug(): gdb_port - argv[0]=ocd_gdb_port
Debug: 18 0 command.c:77 script_debug(): gdb_port - argv[1]=3333
Debug: 20 0 command.c:68 script_debug(): command - tcl_port
Debug: 21 0 command.c:77 script_debug(): tcl_port - argv[0]=ocd_tcl_port
Debug: 22 0 command.c:77 script_debug(): tcl_port - argv[1]=6666
Debug: 24 0 command.c:68 script_debug(): command - gdb_memory_map
Debug: 25 0 command.c:77 script_debug(): gdb_memory_map -
argv[0]=ocd_gdb_memory_map
Debug: 26 0 command.c:77 script_debug(): gdb_memory_map - argv[1]=enable
Debug: 28 0 command.c:68 script_debug(): command - gdb_flash_program
Debug: 29 0 command.c:77 script_debug(): gdb_flash_program -
argv[0]=ocd_gdb_flash_program
Debug: 30 0 command.c:77 script_debug(): gdb_flash_program - argv[1]=enable
Debug: 32 0 command.c:68 script_debug(): command - interface
Debug: 33 0 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 34 0 command.c:77 script_debug(): interface - argv[1]=ft2232
Debug: 36 15 command.c:68 script_debug(): command - ft2232_device_desc
Debug: 37 15 command.c:77 script_debug(): ft2232_device_desc -
argv[0]=ocd_ft2232_device_desc
Debug: 38 15 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Amontec
JTAGkey A
Debug: 40 15 command.c:68 script_debug(): command - ft2232_layout
Debug: 41 15 command.c:77 script_debug(): ft2232_layout -
argv[0]=ocd_ft2232_layout
Debug: 42 15 command.c:77 script_debug(): ft2232_layout - argv[1]=jtagkey
Debug: 44 15 command.c:68 script_debug(): command - ft2232_vid_pid
Debug: 45 15 command.c:77 script_debug(): ft2232_vid_pid -
argv[0]=ocd_ft2232_vid_pid
Debug: 46 15 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x0403
Debug: 47 15 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0xcff8
Debug: 49 15 command.c:68 script_debug(): command - jtag_khz
Debug: 50 15 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz
Debug: 51 15 command.c:77 script_debug(): jtag_khz - argv[1]=30
Debug: 52 15 core.c:1239 jtag_config_khz(): handle jtag khz
User : 53 15 command.c:396 command_print(): 30 kHz
Debug: 55 15 command.c:68 script_debug(): command - reset_config
Debug: 56 15 command.c:77 script_debug(): reset_config -
argv[0]=ocd_reset_config
Debug: 57 15 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
Debug: 58 15 command.c:77 script_debug(): reset_config - argv[2]=srst_pulls_trst
Debug: 59 15 tcl.c:363 jim_newtap_cmd(): Creating New Tap, Chip: str710, Tap:
cpu, Dotted: str710.cpu, 8 params
Debug: 60 15 tcl.c:382 jim_newtap_cmd(): Processing option: -irlen
Debug: 61 15 tcl.c:382 jim_newtap_cmd(): Processing option: -ircapture
Debug: 62 15 tcl.c:382 jim_newtap_cmd(): Processing option: -irmask
Debug: 63 15 tcl.c:382 jim_newtap_cmd(): Processing option: -expected-id
Debug: 64 15 core.c:1089 jtag_tap_init(): Created Tap: str710.cpu @ abs
position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 65 15 target.c:4191 jim_target(): Target command params:
Debug: 66 15 target.c:4192 jim_target(): target create str710.cpu arm7tdmi
-endian little -chain-position str710.cpu -variant arm7tdmi
Debug: 68 15 command.c:68 script_debug(): command - bank
Debug: 69 15 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 70 15 command.c:77 script_debug(): bank - argv[1]=str7x
Debug: 71 15 command.c:77 script_debug(): bank - argv[2]=0x40000000
Debug: 72 15 command.c:77 script_debug(): bank - argv[3]=0x00040000
Debug: 73 15 command.c:77 script_debug(): bank - argv[4]=0
Debug: 74 15 command.c:77 script_debug(): bank - argv[5]=0
Debug: 75 15 command.c:77 script_debug(): bank - argv[6]=0
Debug: 76 15 command.c:77 script_debug(): bank - argv[7]=STR71x
Debug: 78 15 command.c:68 script_debug(): command - bank
Debug: 79 15 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 80 15 command.c:77 script_debug(): bank - argv[1]=str7x
Debug: 81 15 command.c:77 script_debug(): bank - argv[2]=0x400C0000
Debug: 82 15 command.c:77 script_debug(): bank - argv[3]=0x00004000
Debug: 83 15 command.c:77 script_debug(): bank - argv[4]=0
Debug: 84 15 command.c:77 script_debug(): bank - argv[5]=0
Debug: 85 15 command.c:77 script_debug(): bank - argv[6]=0
Debug: 86 15 command.c:77 script_debug(): bank - argv[7]=STR71x
Debug: 88 15 command.c:68 script_debug(): command - init
Debug: 89 15 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 90 15 openocd.c:129 handle_init_command(): target init complete
Debug: 91 15 ft2232.c:2047 ft2232_init(): ft2232 interface using shortest path
jtag state transitions
Debug: 92 15 ft2232.c:1793 ft2232_init_ftd2xx(): 'ft2232' interface using
FTD2XX with 'jtagkey' layout (0403:cff8)
Debug: 93 46 ft2232.c:1904 ft2232_init_ftd2xx(): current latency timer: 2
Info : 94 46 ft2232.c:1926 ft2232_init_ftd2xx(): device: 4
Info : 95 46 ft2232.c:1927 ft2232_init_ftd2xx(): deviceID: 67358712
Info : 96 46 ft2232.c:1928 ft2232_init_ftd2xx(): SerialNumber: AMTJKV31A
Info : 97 46 ft2232.c:1929 ft2232_init_ftd2xx(): Description: Amontec JTAGkey A
Debug: 98 46 ft2232.c:2283 jtagkey_init(): 80 08 1b
Debug: 99 46 ft2232.c:2342 jtagkey_init(): 82 09 0f
Debug: 100 46 ft2232.c:442 ft2232_adaptive_clocking(): 97
Debug: 101 46 ft2232.c:474 ft2232_speed(): 86 c7 00
Debug: 102 62 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 103 62 core.c:1132 jtag_init_inner(): Init JTAG chain
Debug: 104 62 core.c:273 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 105 62 core.c:785 jtag_reset_callback(): -
Info : 106 78 core.c:850 jtag_examine_chain_display(): JTAG tap: str710.cpu
tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Info : 107 78 core.c:906 jtag_examine_chain_match_tap(): JTAG Tap/device matched
Debug: 108 93 openocd.c:142 handle_init_command(): jtag init complete
Debug: 109 93 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 110 93 embeddedice.c:370 embeddedice_write_reg(): 20: 0x00000000
Debug: 111 93 openocd.c:145 handle_init_command(): jtag examine complete
Debug: 112 93 openocd.c:151 handle_init_command(): flash init complete
Debug: 113 93 openocd.c:155 handle_init_command(): mflash init complete
Debug: 114 93 openocd.c:159 handle_init_command(): NAND init complete
Debug: 115 93 openocd.c:163 handle_init_command(): pld init complete
Debug: 116 109 gdb_server.c:2228 gdb_init(): gdb service for target arm7tdmi at
port 3333
Warn : 117 109 arm7_9_common.c:899 arm7_9_poll(): DBGACK set while target was
in unknown state. Reset or initialize target.
Debug: 118 109 embeddedice.c:370 embeddedice_write_reg(): 0: 0x00000005
Debug: 119 109 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 120 109 arm7_9_common.c:1370 arm7_9_debug_entry(): target entered debug
from ARM state
Debug: 121 156 arm7_9_common.c:1402 arm7_9_debug_entry(): target entered debug
state in Supervisor mode
Debug: 122 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r0: 0x900000db
Debug: 123 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r1: 0x541cb014
Debug: 124 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r2: 0x00211364
Debug: 125 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r3: 0x03030922
Debug: 126 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r4: 0x8810ce05
Debug: 127 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r5: 0x5c020818
Debug: 128 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r6: 0x5298395d
Debug: 129 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r7: 0x54811042
Debug: 130 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r8: 0x30110062
Debug: 131 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r9: 0x41250000
Debug: 132 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r10: 0x5220eb0e
Debug: 133 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r11: 0x1a8463a0
Debug: 134 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r12: 0x9098448e
Debug: 135 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r13: 0x08808030
Debug: 136 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r14: 0x00092fe8
Debug: 137 156 arm7_9_common.c:1433 arm7_9_debug_entry(): r15: 0x00074344
Debug: 138 156 arm7_9_common.c:1439 arm7_9_debug_entry(): entered debug state
at PC 0x74344
Debug: 139 156 target.c:808 target_call_event_callbacks(): target event 4
(early-halted)
Debug: 140 156 target.c:3311 target_handle_event(): event: 4 early-halted - no
action
Debug: 141 156 target.c:808 target_call_event_callbacks(): target event 5
(halted)
Debug: 142 156 target.c:3311 target_handle_event(): event: 5 halted - no action
User : 143 156 target.c:1070 target_arch_state(): target state: halted
User : 144 156 armv4_5.c:305 armv4_5_arch_state(): target halted in ARM state
due to breakpoint, current mode: Supervisor
cpsr: 0x900000d3 pc: 0x00074344
Debug: 146 156 command.c:68 script_debug(): command - reset
Debug: 147 156 command.c:77 script_debug(): reset - argv[0]=ocd_reset
Debug: 148 156 command.c:77 script_debug(): reset - argv[1]=init
Debug: 149 156 target.c:4191 jim_target(): Target command params:
Debug: 150 156 target.c:4192 jim_target(): target names
Debug: 151 156 target.c:3300 target_handle_event(): target: (0) str710.cpu
(arm7tdmi) event: 11 (reset-start) action: jtag_khz 30
Debug: 153 156 command.c:68 script_debug(): command - jtag_khz
Debug: 154 156 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz
Debug: 155 156 command.c:77 script_debug(): jtag_khz - argv[1]=30
Debug: 156 156 core.c:1239 jtag_config_khz(): handle jtag khz
Debug: 157 156 core.c:1245 jtag_config_khz(): have interface set up
Debug: 158 156 ft2232.c:442 ft2232_adaptive_clocking(): 97
Debug: 159 171 ft2232.c:474 ft2232_speed(): 86 c7 00
User : 160 171 command.c:396 command_print(): 30 kHz
Debug: 161 171 core.c:1179 jtag_init_reset(): Trying to bring the JTAG
controller to life by asserting TRST / RESET
Debug: 162 171 ft2232.c:1272 jtagkey_reset(): trst: 1, srst: 0, high_output:
0x08, high_direction: 0x0f
Debug: 163 171 core.c:631 jtag_add_reset(): SRST line released
Debug: 164 171 core.c:649 jtag_add_reset(): TRST line asserted
Debug: 165 171 core.c:273 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 166 171 core.c:785 jtag_reset_callback(): -
Debug: 167 171 ft2232.c:1272 jtagkey_reset(): trst: 1, srst: 1, high_output:
0x00, high_direction: 0x0f
Debug: 168 171 core.c:627 jtag_add_reset(): SRST line asserted
Debug: 169 171 core.c:649 jtag_add_reset(): TRST line asserted
Debug: 170 171 core.c:273 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 171 171 core.c:785 jtag_reset_callback(): -
Debug: 172 171 ft2232.c:1272 jtagkey_reset(): trst: 0, srst: 0, high_output:
0x09, high_direction: 0x0f
Debug: 173 171 core.c:631 jtag_add_reset(): SRST line released
Debug: 174 171 core.c:1132 jtag_init_inner(): Init JTAG chain
Debug: 175 171 core.c:273 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 176 171 core.c:785 jtag_reset_callback(): -
Warn : 177 187 core.c:948 jtag_examine_chain(): Tap/Device does not have IDCODE
Error: 178 187 core.c:850 jtag_examine_chain_display(): JTAG tap: str710.cpu
got: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
Error: 179 187 core.c:850 jtag_examine_chain_display(): JTAG tap: str710.cpu
expected 1 of 1: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Error: 180 187 core.c:1147 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Error: 181 187 core.c:1044 jtag_validate_chain(): Could not validate JTAG scan
chain, IR mismatch, scan returned 0x00. tap=str710.cpu pos=0 expected 0x1 got 0
Warn : 182 187 core.c:1152 jtag_init_inner(): Could not validate JTAG chain,
continuing anyway...
Debug: 183 187 target.c:4191 jim_target(): Target command params:
Debug: 184 187 target.c:4192 jim_target(): target names
Debug: 185 187 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 186 187 embeddedice.c:370 embeddedice_write_reg(): 20: 0x00000000
Debug: 187 187 target.c:4191 jim_target(): Target command params:
Debug: 188 187 target.c:4192 jim_target(): target names
Debug: 189 187 target.c:3311 target_handle_event(): event: 12 reset-assert-pre
- no action
Debug: 190 187 arm7_9_common.c:977 arm7_9_assert_reset(): target->state: halted
Debug: 191 187 embeddedice.c:370 embeddedice_write_reg(): 8: 0x00000000
Debug: 192 187 embeddedice.c:370 embeddedice_write_reg(): 9: 0x00000003
Debug: 193 187 embeddedice.c:370 embeddedice_write_reg(): 11: 0xffffffff
Debug: 194 187 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000100
Debug: 195 187 embeddedice.c:370 embeddedice_write_reg(): 13: 0x000000f7
Debug: 196 187 ft2232.c:1272 jtagkey_reset(): trst: 1, srst: 1, high_output:
0x00, high_direction: 0x0f
Debug: 197 203 core.c:627 jtag_add_reset(): SRST line asserted
Debug: 198 203 core.c:649 jtag_add_reset(): TRST line asserted
Debug: 199 203 core.c:273 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 200 203 core.c:785 jtag_reset_callback(): -
Debug: 201 203 target.c:3311 target_handle_event(): event: 13 reset-assert-post
- no action
Debug: 202 203 target.c:4191 jim_target(): Target command params:
Debug: 203 203 target.c:4192 jim_target(): target names
Debug: 204 203 target.c:3311 target_handle_event(): event: 14
reset-deassert-pre - no action
Debug: 205 203 arm7_9_common.c:1047 arm7_9_deassert_reset(): target->state:
reset
Debug: 206 281 ft2232.c:1272 jtagkey_reset(): trst: 0, srst: 0, high_output:
0x09, high_direction: 0x0f
Debug: 207 281 core.c:631 jtag_add_reset(): SRST line released
Warn : 208 281 arm7_9_common.c:1055 arm7_9_deassert_reset(): srst pulls trst -
can not reset into halted mode. Issuing halt after reset.
Debug: 209 281 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000
Debug: 210 281 embeddedice.c:370 embeddedice_write_reg(): 20: 0x00000000
Debug: 211 281 arm7_9_common.c:1260 arm7_9_halt(): target->state: running
Debug: 212 281 embeddedice.c:370 embeddedice_write_reg(): 9: 0xffffffff
Debug: 213 281 embeddedice.c:370 embeddedice_write_reg(): 11: 0xffffffff
Debug: 214 281 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000100
Debug: 215 281 embeddedice.c:370 embeddedice_write_reg(): 13: 0x000000f7
Debug: 216 281 target.c:3311 target_handle_event(): event: 15
reset-deassert-post - no action
Debug: 217 281 target.c:4191 jim_target(): Target command params:
Debug: 218 281 target.c:4192 jim_target(): target names
Debug: 219 296 target.c:1871 target_wait_state(): waiting for target halted...
Error: 221 1312 target.c:1882 target_wait_state(): timed out while waiting for
target halted
User : 222 1312 command.c:642 openocd_jim_vfprintf(): Runtime error, file
"embedded:startup.tcl", line 226:
User : 223 1312 command.c:642 openocd_jim_vfprintf(): expected return code
but got 'TARGET: str710.cpu - Not halted'
User : 225 1312 command.c:642 openocd_jim_vfprintf():
User : 227 1312 command.c:642 openocd_jim_vfprintf():
User : 229 1312 command.c:642 openocd_jim_vfprintf():
User : 231 1312 command.c:642 openocd_jim_vfprintf():
Debug: 232 1312 command.c:440 run_command(): Command failed with error code -4
User : 233 1312 command.c:642 openocd_jim_vfprintf(): Runtime error, file
".\prj\jtagkey.cfg", line 82:
User : 234 1312 command.c:642 openocd_jim_vfprintf():
User : 237 1312 command.c:642 openocd_jim_vfprintf():
User : 239 1312 command.c:642 openocd_jim_vfprintf():
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development