Spencer Oliver pisze: > Do you still get this with svn trunk? Yes - just checked r2584
> My only suggestion is to narrow it down to the rev that causes the problem. > between 0.1 and 0.2 there are over 1000 commits so it is not easy foe anyone > to answer > from the above info. As I wrote at the end of my message - the last-before-0.2.0-that-I've-checked - r2498 - works fine. That's much lees then a 1000 [; > a full debug log may be better, including the cfg used. openocd.exe -d 3 -f interface/jtagkey.cfg -f target/stm32.cfg -c "jtag_khz 1000" (files are standard) The run after "power-up" when the bug manifests itself: > Open On-Chip Debugger 0.2.0 (2009-07-19-11:13) Release > $URL: > http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.2.0/src/openocd.c $ > For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS > User : 5 0 command.c:396 command_print(): debug_level: 3 > Debug: 6 0 configuration.c:83 find_file(): found C:\Program > Files\OpenOCD\0.2.0\bin\../interface/jtagkey.cfg > Debug: 8 0 command.c:68 script_debug(): command - interface > Debug: 9 0 command.c:77 script_debug(): interface - argv[0]=ocd_interface > Debug: 10 0 command.c:77 script_debug(): interface - argv[1]=ft2232 > Debug: 12 0 command.c:68 script_debug(): command - ft2232_device_desc > Debug: 13 0 command.c:77 script_debug(): ft2232_device_desc - > argv[0]=ocd_ft2232_device_desc > Debug: 14 0 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Amontec > JTAGkey A > Debug: 16 0 command.c:68 script_debug(): command - ft2232_layout > Debug: 17 0 command.c:77 script_debug(): ft2232_layout - > argv[0]=ocd_ft2232_layout > Debug: 18 0 command.c:77 script_debug(): ft2232_layout - argv[1]=jtagkey > Debug: 20 0 command.c:68 script_debug(): command - ft2232_vid_pid > Debug: 21 0 command.c:77 script_debug(): ft2232_vid_pid - > argv[0]=ocd_ft2232_vid_pid > Debug: 22 0 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x0403 > Debug: 23 0 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0xcff8 > Debug: 24 0 configuration.c:83 find_file(): found C:\Program > Files\OpenOCD\0.2.0\bin\../target/stm32.cfg > Debug: 26 0 command.c:68 script_debug(): command - jtag_khz > Debug: 27 0 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz > Debug: 28 0 command.c:77 script_debug(): jtag_khz - argv[1]=1000 > Debug: 29 0 core.c:1268 jtag_config_khz(): handle jtag khz > User : 30 0 command.c:396 command_print(): 1000 kHz > Debug: 32 0 command.c:68 script_debug(): command - jtag_nsrst_delay > Debug: 33 0 command.c:77 script_debug(): jtag_nsrst_delay - > argv[0]=ocd_jtag_nsrst_delay > Debug: 34 0 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=100 > User : 35 0 command.c:396 command_print(): jtag_nsrst_delay: 100 > Debug: 37 0 command.c:68 script_debug(): command - jtag_ntrst_delay > Debug: 38 0 command.c:77 script_debug(): jtag_ntrst_delay - > argv[0]=ocd_jtag_ntrst_delay > Debug: 39 0 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=100 > User : 40 0 command.c:396 command_print(): jtag_ntrst_delay: 100 > Debug: 42 0 command.c:68 script_debug(): command - reset_config > Debug: 43 0 command.c:77 script_debug(): reset_config - > argv[0]=ocd_reset_config > Debug: 44 0 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst > Debug: 45 0 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: > cpu, Dotted: stm32.cpu, 8 params > Debug: 46 0 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen > Debug: 47 0 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture > Debug: 48 0 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask > Debug: 49 0 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 50 0 core.c:1116 jtag_tap_init(): Created Tap: stm32.cpu @ abs > position 0, irlen 4, capture: 0x1 mask: 0xf > Debug: 51 0 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: > bs, Dotted: stm32.bs, 16 params > Debug: 52 0 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen > Debug: 53 0 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture > Debug: 54 0 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask > Debug: 55 0 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 56 0 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 57 0 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 58 0 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 59 0 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 60 0 core.c:1116 jtag_tap_init(): Created Tap: stm32.bs @ abs position > 0, irlen 5, capture: 0x1 mask: 0x1 > Debug: 61 0 target.c:4295 jim_target(): Target command params: > Debug: 62 0 target.c:4296 jim_target(): target create stm32.cpu cortex_m3 > -endian little -chain-position stm32.cpu > Debug: 64 0 command.c:68 script_debug(): command - bank > Debug: 65 0 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank > Debug: 66 0 command.c:77 script_debug(): bank - argv[1]=stm32x > Debug: 67 0 command.c:77 script_debug(): bank - argv[2]=0 > Debug: 68 0 command.c:77 script_debug(): bank - argv[3]=0 > Debug: 69 0 command.c:77 script_debug(): bank - argv[4]=0 > Debug: 70 0 command.c:77 script_debug(): bank - argv[5]=0 > Debug: 71 0 command.c:77 script_debug(): bank - argv[6]=0 > Debug: 73 0 command.c:68 script_debug(): command - jtag_khz > Debug: 74 0 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz > Debug: 75 0 command.c:77 script_debug(): jtag_khz - argv[1]=1000 > Debug: 76 0 core.c:1268 jtag_config_khz(): handle jtag khz > User : 77 0 command.c:396 command_print(): 1000 kHz > Debug: 79 0 command.c:68 script_debug(): command - init > Debug: 80 0 command.c:77 script_debug(): init - argv[0]=ocd_init > Debug: 81 0 openocd.c:129 handle_init_command(): target init complete > Debug: 82 0 ft2232.c:2059 ft2232_init(): ft2232 interface using shortest path > jtag state transitions > Debug: 83 0 ft2232.c:1805 ft2232_init_ftd2xx(): 'ft2232' interface using > FTD2XX with 'jtagkey' layout (0403:cff8) > Debug: 84 93 ft2232.c:1916 ft2232_init_ftd2xx(): current latency timer: 2 > Info : 85 93 ft2232.c:1938 ft2232_init_ftd2xx(): device: 4 > Info : 86 93 ft2232.c:1939 ft2232_init_ftd2xx(): deviceID: 67358712 > Info : 87 93 ft2232.c:1940 ft2232_init_ftd2xx(): SerialNumber: FTS7ZEMMA > Info : 88 93 ft2232.c:1941 ft2232_init_ftd2xx(): Description: Amontec JTAGkey > A > Debug: 89 93 ft2232.c:2304 jtagkey_init(): 80 08 1b > Debug: 90 93 ft2232.c:2363 jtagkey_init(): 82 09 0f > Debug: 91 93 ft2232.c:445 ft2232_adaptive_clocking(): 97 > Debug: 92 109 ft2232.c:477 ft2232_speed(): 86 05 00 > Debug: 93 125 openocd.c:136 handle_init_command(): jtag interface init > complete > Debug: 94 125 core.c:1161 jtag_init_inner(): Init JTAG chain > Debug: 95 125 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG > controller reset (RESET or TRST) > Debug: 96 125 core.c:807 jtag_reset_callback(): - > Debug: 97 125 core.c:807 jtag_reset_callback(): - > Warn : 98 125 core.c:975 jtag_examine_chain(): Tap/Device does not have IDCODE > Error: 99 125 core.c:874 jtag_examine_chain_display(): JTAG tap: stm32.cpu > got: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0) > Error: 100 125 core.c:874 jtag_examine_chain_display(): JTAG tap: stm32.cpu > expected 1 of 1: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) > Error: 101 125 core.c:1176 jtag_init_inner(): trying to validate configured > JTAG chain anyway... > Error: 102 125 core.c:1071 jtag_validate_chain(): Could not validate JTAG > scan chain, IR mismatch, scan returned 0x0200. tap=stm32.cpu pos=0 expected > 0x1 got 0 > Warn : 103 125 core.c:1181 jtag_init_inner(): Could not validate JTAG chain, > continuing anyway... > Debug: 104 125 openocd.c:142 handle_init_command(): jtag init complete > Debug: 105 125 arm_adi_v5.c:960 ahbap_debugport_init(): > Debug: 106 125 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 107 156 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 108 171 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 109 187 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 110 203 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 111 218 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 112 234 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 113 250 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 114 265 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Debug: 115 281 arm_adi_v5.c:980 ahbap_debugport_init(): swjdp: wait > CDBGPWRUPACK > Warn : 116 296 arm_adi_v5.c:226 swjdp_transaction_endcheck(): Invalid ACK in > SWJDP transaction > Warn : 117 296 arm_adi_v5.c:226 swjdp_transaction_endcheck(): Invalid ACK in > SWJDP transaction > Debug: 118 296 arm_adi_v5.c:1005 ahbap_debugport_init(): AHB-AP ID Register > 0xa011579e, Debug ROM Address 0x7003579e > Warn : 119 296 arm_adi_v5.c:226 swjdp_transaction_endcheck(): Invalid ACK in > SWJDP transaction > Warn : 120 296 arm_adi_v5.c:226 swjdp_transaction_endcheck(): Invalid ACK in > SWJDP transaction > Warn : 121 296 arm_adi_v5.c:759 mem_ap_read_buf_u32(): Block read error > address 0xe000ed00, count 0x1 > Debug: 122 296 target.c:1348 target_read_u32(): address: 0xe000ed00 failed > Debug: 123 296 openocd.c:151 handle_init_command(): flash init complete > Debug: 124 296 openocd.c:155 handle_init_command(): mflash init complete > Debug: 125 296 openocd.c:159 handle_init_command(): NAND init complete > Debug: 126 296 openocd.c:163 handle_init_command(): pld init complete > Debug: 127 312 gdb_server.c:2236 gdb_init(): gdb service for target cortex_m3 > at port 3333 > Warn : 128 328 arm_adi_v5.c:226 swjdp_transaction_endcheck(): Invalid ACK in > SWJDP transaction > [...] forever the same [...] A second run: > Open On-Chip Debugger 0.2.0 (2009-07-19-11:13) Release > $URL: > http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.2.0/src/openocd.c $ > For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS > User : 5 0 command.c:396 command_print(): debug_level: 3 > Debug: 6 15 configuration.c:83 find_file(): found C:\Program > Files\OpenOCD\0.2.0\bin\../interface/jtagkey.cfg > Debug: 8 15 command.c:68 script_debug(): command - interface > Debug: 9 15 command.c:77 script_debug(): interface - argv[0]=ocd_interface > Debug: 10 15 command.c:77 script_debug(): interface - argv[1]=ft2232 > Debug: 12 15 command.c:68 script_debug(): command - ft2232_device_desc > Debug: 13 15 command.c:77 script_debug(): ft2232_device_desc - > argv[0]=ocd_ft2232_device_desc > Debug: 14 15 command.c:77 script_debug(): ft2232_device_desc - > argv[1]=Amontec JTAGkey A > Debug: 16 15 command.c:68 script_debug(): command - ft2232_layout > Debug: 17 15 command.c:77 script_debug(): ft2232_layout - > argv[0]=ocd_ft2232_layout > Debug: 18 15 command.c:77 script_debug(): ft2232_layout - argv[1]=jtagkey > Debug: 20 15 command.c:68 script_debug(): command - ft2232_vid_pid > Debug: 21 15 command.c:77 script_debug(): ft2232_vid_pid - > argv[0]=ocd_ft2232_vid_pid > Debug: 22 15 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x0403 > Debug: 23 15 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0xcff8 > Debug: 24 15 configuration.c:83 find_file(): found C:\Program > Files\OpenOCD\0.2.0\bin\../target/stm32.cfg > Debug: 26 15 command.c:68 script_debug(): command - jtag_khz > Debug: 27 15 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz > Debug: 28 15 command.c:77 script_debug(): jtag_khz - argv[1]=1000 > Debug: 29 15 core.c:1268 jtag_config_khz(): handle jtag khz > User : 30 15 command.c:396 command_print(): 1000 kHz > Debug: 32 15 command.c:68 script_debug(): command - jtag_nsrst_delay > Debug: 33 15 command.c:77 script_debug(): jtag_nsrst_delay - > argv[0]=ocd_jtag_nsrst_delay > Debug: 34 15 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=100 > User : 35 15 command.c:396 command_print(): jtag_nsrst_delay: 100 > Debug: 37 15 command.c:68 script_debug(): command - jtag_ntrst_delay > Debug: 38 15 command.c:77 script_debug(): jtag_ntrst_delay - > argv[0]=ocd_jtag_ntrst_delay > Debug: 39 15 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=100 > User : 40 15 command.c:396 command_print(): jtag_ntrst_delay: 100 > Debug: 42 15 command.c:68 script_debug(): command - reset_config > Debug: 43 15 command.c:77 script_debug(): reset_config - > argv[0]=ocd_reset_config > Debug: 44 15 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst > Debug: 45 15 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: > cpu, Dotted: stm32.cpu, 8 params > Debug: 46 15 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen > Debug: 47 15 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture > Debug: 48 15 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask > Debug: 49 15 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 50 15 core.c:1116 jtag_tap_init(): Created Tap: stm32.cpu @ abs > position 0, irlen 4, capture: 0x1 mask: 0xf > Debug: 51 15 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip: stm32, Tap: > bs, Dotted: stm32.bs, 16 params > Debug: 52 15 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen > Debug: 53 15 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture > Debug: 54 15 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask > Debug: 55 15 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 56 15 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 57 15 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 58 15 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 59 15 tcl.c:253 jim_newtap_cmd(): Processing option: -expected-id > Debug: 60 15 core.c:1116 jtag_tap_init(): Created Tap: stm32.bs @ abs > position 0, irlen 5, capture: 0x1 mask: 0x1 > Debug: 61 15 target.c:4295 jim_target(): Target command params: > Debug: 62 15 target.c:4296 jim_target(): target create stm32.cpu cortex_m3 > -endian little -chain-position stm32.cpu > Debug: 64 15 command.c:68 script_debug(): command - bank > Debug: 65 15 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank > Debug: 66 15 command.c:77 script_debug(): bank - argv[1]=stm32x > Debug: 67 15 command.c:77 script_debug(): bank - argv[2]=0 > Debug: 68 15 command.c:77 script_debug(): bank - argv[3]=0 > Debug: 69 15 command.c:77 script_debug(): bank - argv[4]=0 > Debug: 70 15 command.c:77 script_debug(): bank - argv[5]=0 > Debug: 71 15 command.c:77 script_debug(): bank - argv[6]=0 > Debug: 73 15 command.c:68 script_debug(): command - jtag_khz > Debug: 74 15 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz > Debug: 75 15 command.c:77 script_debug(): jtag_khz - argv[1]=1000 > Debug: 76 15 core.c:1268 jtag_config_khz(): handle jtag khz > User : 77 15 command.c:396 command_print(): 1000 kHz > Debug: 79 15 command.c:68 script_debug(): command - init > Debug: 80 15 command.c:77 script_debug(): init - argv[0]=ocd_init > Debug: 81 15 openocd.c:129 handle_init_command(): target init complete > Debug: 82 15 ft2232.c:2059 ft2232_init(): ft2232 interface using shortest > path jtag state transitions > Debug: 83 15 ft2232.c:1805 ft2232_init_ftd2xx(): 'ft2232' interface using > FTD2XX with 'jtagkey' layout (0403:cff8) > Debug: 84 78 ft2232.c:1916 ft2232_init_ftd2xx(): current latency timer: 2 > Info : 85 78 ft2232.c:1938 ft2232_init_ftd2xx(): device: 4 > Info : 86 78 ft2232.c:1939 ft2232_init_ftd2xx(): deviceID: 67358712 > Info : 87 78 ft2232.c:1940 ft2232_init_ftd2xx(): SerialNumber: FTS7ZEMMA > Info : 88 78 ft2232.c:1941 ft2232_init_ftd2xx(): Description: Amontec JTAGkey > A > Debug: 89 78 ft2232.c:2304 jtagkey_init(): 80 08 1b > Debug: 90 78 ft2232.c:2363 jtagkey_init(): 82 09 0f > Debug: 91 78 ft2232.c:445 ft2232_adaptive_clocking(): 97 > Debug: 92 78 ft2232.c:477 ft2232_speed(): 86 05 00 > Debug: 93 109 openocd.c:136 handle_init_command(): jtag interface init > complete > Debug: 94 109 core.c:1161 jtag_init_inner(): Init JTAG chain > Debug: 95 109 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG > controller reset (RESET or TRST) > Debug: 96 109 core.c:807 jtag_reset_callback(): - > Debug: 97 109 core.c:807 jtag_reset_callback(): - > Info : 98 109 core.c:874 jtag_examine_chain_display(): JTAG tap: stm32.cpu > tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3) > Info : 99 109 core.c:933 jtag_examine_chain_match_tap(): JTAG Tap/device > matched > Info : 100 109 core.c:874 jtag_examine_chain_display(): JTAG tap: stm32.bs > tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1) > Info : 101 109 core.c:933 jtag_examine_chain_match_tap(): JTAG Tap/device > matched > Debug: 102 109 openocd.c:142 handle_init_command(): jtag init complete > Debug: 103 109 arm_adi_v5.c:960 ahbap_debugport_init(): > Debug: 104 109 arm_adi_v5.c:1005 ahbap_debugport_init(): AHB-AP ID Register > 0x14770011, Debug ROM Address 0xe00ff003 > Debug: 105 125 target.c:1342 target_read_u32(): address: 0xe000ed00, value: > 0x411fc231 > Debug: 106 125 cortex_m3.c:1470 cortex_m3_examine(): CORTEX-M3 processor > detected > Debug: 107 125 cortex_m3.c:1471 cortex_m3_examine(): cpuid: 0x411fc231 > Debug: 108 125 target.c:1342 target_read_u32(): address: 0xe000e004, value: > 0x00000001 > Debug: 109 125 target.c:1342 target_read_u32(): address: 0xe000e100, value: > 0x00000000 > Debug: 110 125 cortex_m3.c:1479 cortex_m3_examine(): interrupt enable[0] = > 0x00000000 > Debug: 111 125 target.c:1342 target_read_u32(): address: 0xe000e104, value: > 0x00000000 > Debug: 112 125 cortex_m3.c:1479 cortex_m3_examine(): interrupt enable[1] = > 0x00000000 > Debug: 113 125 target.c:1342 target_read_u32(): address: 0xe0002000, value: > 0x00000260 > Debug: 114 125 cortex_m3.c:1495 cortex_m3_examine(): FPB fpcr 0x260, numcode > 6, numlit 2 > Debug: 115 125 target.c:1342 target_read_u32(): address: 0xe0001000, value: > 0x40000000 > Debug: 116 125 openocd.c:145 handle_init_command(): jtag examine complete > Debug: 117 125 openocd.c:151 handle_init_command(): flash init complete > Debug: 118 125 openocd.c:155 handle_init_command(): mflash init complete > Debug: 119 125 openocd.c:159 handle_init_command(): NAND init complete > Debug: 120 125 openocd.c:163 handle_init_command(): pld init complete > Debug: 121 125 gdb_server.c:2236 gdb_init(): gdb service for target cortex_m3 > at port 3333 As you see - done with 0.2.0. > I do not see this behaviour on a stm32 using a amontec jtagkey. Here I see that only with ftd2xx.dll, libftdi doesn't show that behaviour. I'm testing only in Windows. 4\/3!! _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
