Hello list, the SAM7S256 is still broken like I have reported before: https://lists.berlios.de/pipermail/openocd-development/2009-May/006929.html
The OpenOCD output looks like: ============================================================================ ===== C:\Temp\SAM7S256Test>openocd-1889 -f .\prj\jtagkey.cfg Open On-Chip Debugger 0.2.0-in-development (2009-05-23-09:57) svn:1889 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $ 30 kHz Info : JTAG tap: sam7s256.cpu tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3) Info : JTAG Tap/device matched 30 kHz Info : JTAG tap: sam7s256.cpu tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3) Info : JTAG Tap/device matched Warn : srst pulls trst - can not reset into halted mode. Issuing halt after rese t. Warn : value captured during scan didn't pass the requested check: Warn : captured: 0x0F check_value: 0x01 check_mask: 0x0F Error: timed out while waiting for target halted Runtime error, file "embedded:startup.tcl", line 212: expected return code but got 'TARGET: sam7s256.cpu - Not halted' Runtime error, file ".\prj\jtagkey.cfg", line 99: ============================================================================ ===== Attached is the d3 log file too. Please apply the patch from Magnus, which was send here too: https://lists.berlios.de/pipermail/openocd-development/2009-May/007085.html - jtag_090522.patch - ft2232_090522.patch This solve the problem. All the three patches was tested against 1881 with the following targets under Windows and FT2232: SAM7S256, SAM7X256, AT91R40008, SAM7SE512, LPC2148, LPC2294, STR710, STM32F103ZE. Tested was RAM debugging under Insight. The same test with SAM7S256 LPC2148, LPC2294 STR710, STM32F103ZE was done under Mac OS X with FT2232 and J-Link, RAM debugging under Eclipse. Regards, Michael
Debug: 9 0 configuration.c:83 find_file(): found .\prj\jtagkey.cfg Debug: 11 0 command.c:88 script_command(): script_command - telnet_port Debug: 12 0 command.c:105 script_command(): script_command - telnet_port, argv[0]=ocd_telnet_port Debug: 13 0 command.c:105 script_command(): script_command - telnet_port, argv[1]=4444 Debug: 15 0 command.c:88 script_command(): script_command - gdb_port Debug: 16 0 command.c:105 script_command(): script_command - gdb_port, argv[0]=ocd_gdb_port Debug: 17 0 command.c:105 script_command(): script_command - gdb_port, argv[1]=3333 Debug: 19 0 command.c:88 script_command(): script_command - tcl_port Debug: 20 0 command.c:105 script_command(): script_command - tcl_port, argv[0]=ocd_tcl_port Debug: 21 0 command.c:105 script_command(): script_command - tcl_port, argv[1]=6666 Debug: 23 0 command.c:88 script_command(): script_command - gdb_memory_map Debug: 24 0 command.c:105 script_command(): script_command - gdb_memory_map, argv[0]=ocd_gdb_memory_map Debug: 25 0 command.c:105 script_command(): script_command - gdb_memory_map, argv[1]=enable Debug: 27 0 command.c:88 script_command(): script_command - gdb_flash_program Debug: 28 0 command.c:105 script_command(): script_command - gdb_flash_program, argv[0]=ocd_gdb_flash_program Debug: 29 0 command.c:105 script_command(): script_command - gdb_flash_program, argv[1]=enable Debug: 31 0 command.c:88 script_command(): script_command - interface Debug: 32 0 command.c:105 script_command(): script_command - interface, argv[0]=ocd_interface Debug: 33 0 command.c:105 script_command(): script_command - interface, argv[1]=ft2232 Debug: 35 0 command.c:88 script_command(): script_command - ft2232_device_desc Debug: 36 0 command.c:105 script_command(): script_command - ft2232_device_desc, argv[0]=ocd_ft2232_device_desc Debug: 37 0 command.c:105 script_command(): script_command - ft2232_device_desc, argv[1]=Amontec JTAGkey A Debug: 39 0 command.c:88 script_command(): script_command - ft2232_layout Debug: 40 0 command.c:105 script_command(): script_command - ft2232_layout, argv[0]=ocd_ft2232_layout Debug: 41 0 command.c:105 script_command(): script_command - ft2232_layout, argv[1]=jtagkey Debug: 43 0 command.c:88 script_command(): script_command - ft2232_vid_pid Debug: 44 0 command.c:105 script_command(): script_command - ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid Debug: 45 0 command.c:105 script_command(): script_command - ft2232_vid_pid, argv[1]=0x0403 Debug: 46 0 command.c:105 script_command(): script_command - ft2232_vid_pid, argv[2]=0xcff8 Debug: 48 0 command.c:88 script_command(): script_command - jtag_khz Debug: 49 0 command.c:105 script_command(): script_command - jtag_khz, argv[0]=ocd_jtag_khz Debug: 50 0 command.c:105 script_command(): script_command - jtag_khz, argv[1]=30 Debug: 51 0 jtag.c:2787 handle_jtag_khz_command(): handle jtag khz User : 52 0 command.c:380 command_print(): 30 kHz Debug: 54 0 command.c:88 script_command(): script_command - reset_config Debug: 55 0 command.c:105 script_command(): script_command - reset_config, argv[0]=ocd_reset_config Debug: 56 0 command.c:105 script_command(): script_command - reset_config, argv[1]=srst_only Debug: 57 0 command.c:105 script_command(): script_command - reset_config, argv[2]=srst_pulls_trst Debug: 58 0 jtag.c:2029 jim_newtap_cmd(): Creating New Tap, Chip: sam7s256, Tap: cpu, Dotted: sam7s256.cpu, 8 params Debug: 59 0 jtag.c:2048 jim_newtap_cmd(): Processing option: -irlen Debug: 60 0 jtag.c:2048 jim_newtap_cmd(): Processing option: -ircapture Debug: 61 15 jtag.c:2048 jim_newtap_cmd(): Processing option: -irmask Debug: 62 15 jtag.c:2048 jim_newtap_cmd(): Processing option: -expected-id Debug: 63 15 jtag.c:2161 jim_newtap_cmd(): Created Tap: sam7s256.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf Debug: 64 15 target.c:3969 jim_target(): Target command params: Debug: 65 15 target.c:3970 jim_target(): target create sam7s256.cpu arm7tdmi -endian little -chain-position sam7s256.cpu -variant arm7tdmi Debug: 67 15 command.c:88 script_command(): script_command - bank Debug: 68 15 command.c:105 script_command(): script_command - bank, argv[0]=ocd_flash_bank Debug: 69 15 command.c:105 script_command(): script_command - bank, argv[1]=at91sam7 Debug: 70 15 command.c:105 script_command(): script_command - bank, argv[2]=0 Debug: 71 15 command.c:105 script_command(): script_command - bank, argv[3]=0 Debug: 72 15 command.c:105 script_command(): script_command - bank, argv[4]=0 Debug: 73 15 command.c:105 script_command(): script_command - bank, argv[5]=0 Debug: 74 15 command.c:105 script_command(): script_command - bank, argv[6]=0 Debug: 76 15 command.c:88 script_command(): script_command - init Debug: 77 15 command.c:105 script_command(): script_command - init, argv[0]=ocd_init Debug: 78 15 openocd.c:131 handle_init_command(): target init complete Debug: 79 15 ft2232.c:1985 ft2232_init(): ft2232 interface using shortest path jtag state transitions Debug: 80 15 ft2232.c:1752 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'jtagkey' layout (0403:cff8) Debug: 81 46 ft2232.c:1863 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 82 46 ft2232.c:2219 jtagkey_init(): 80 08 1b Debug: 83 46 ft2232.c:2277 jtagkey_init(): 82 09 0f Debug: 84 46 ft2232.c:422 ft2232_speed(): 86 c7 00 Debug: 85 62 openocd.c:138 handle_init_command(): jtag interface init complete Debug: 86 62 jtag.c:2382 jtag_init_inner(): Init JTAG chain Debug: 87 62 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 88 62 jtag.c:1629 jtag_reset_callback(): - Debug: 89 62 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 90 62 jtag.c:1629 jtag_reset_callback(): - Info : 91 78 jtag.c:1750 jtag_examine_chain(): JTAG tap: sam7s256.cpu tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3) Info : 92 78 jtag.c:1788 jtag_examine_chain(): JTAG Tap/device matched Debug: 93 78 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 94 78 jtag.c:1629 jtag_reset_callback(): - Debug: 95 78 openocd.c:144 handle_init_command(): jtag init complete Debug: 96 93 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000 Debug: 97 93 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000 Debug: 98 93 openocd.c:147 handle_init_command(): jtag examine complete Debug: 99 93 openocd.c:153 handle_init_command(): flash init complete Debug: 100 93 openocd.c:157 handle_init_command(): mflash init complete Debug: 101 93 openocd.c:161 handle_init_command(): NAND init complete Debug: 102 93 openocd.c:165 handle_init_command(): pld init complete Debug: 103 93 gdb_server.c:2215 gdb_init(): gdb service for target arm7tdmi at port 3333 Debug: 105 109 command.c:88 script_command(): script_command - reset Debug: 106 109 command.c:105 script_command(): script_command - reset, argv[0]=ocd_reset Debug: 107 109 command.c:105 script_command(): script_command - reset, argv[1]=init Debug: 108 109 target.c:3969 jim_target(): Target command params: Debug: 109 109 target.c:3970 jim_target(): target names Debug: 110 109 target.c:3092 target_handle_event(): target: (0) sam7s256.cpu (arm7tdmi) event: 11 (reset-start) action: jtag_khz 30 Debug: 112 109 command.c:88 script_command(): script_command - jtag_khz Debug: 113 109 command.c:105 script_command(): script_command - jtag_khz, argv[0]=ocd_jtag_khz Debug: 114 109 command.c:105 script_command(): script_command - jtag_khz, argv[1]=30 Debug: 115 109 jtag.c:2787 handle_jtag_khz_command(): handle jtag khz Debug: 116 109 jtag.c:2795 handle_jtag_khz_command(): have interface set up Debug: 117 109 ft2232.c:422 ft2232_speed(): 86 c7 00 User : 118 109 command.c:380 command_print(): 30 kHz Debug: 119 109 jtag.c:2415 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / RESET Debug: 120 109 jtag.c:1263 jtag_add_reset(): SRST line released Debug: 121 109 jtag.c:1270 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 122 109 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 123 109 jtag.c:1629 jtag_reset_callback(): - Debug: 124 109 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 125 109 jtag.c:1629 jtag_reset_callback(): - Debug: 126 109 jtag.c:1259 jtag_add_reset(): SRST line asserted Debug: 127 109 jtag.c:1270 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 128 109 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 129 109 jtag.c:1629 jtag_reset_callback(): - Debug: 130 109 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 131 109 jtag.c:1629 jtag_reset_callback(): - Debug: 132 109 jtag.c:1263 jtag_add_reset(): SRST line released Debug: 133 109 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 134 109 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 1, high_output: 0x01, high_direction: 0x0f Debug: 135 109 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 136 109 jtag.c:2382 jtag_init_inner(): Init JTAG chain Debug: 137 109 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 138 109 jtag.c:1629 jtag_reset_callback(): - Debug: 139 109 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 140 109 jtag.c:1629 jtag_reset_callback(): - Info : 141 140 jtag.c:1750 jtag_examine_chain(): JTAG tap: sam7s256.cpu tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3) Info : 142 140 jtag.c:1788 jtag_examine_chain(): JTAG Tap/device matched Debug: 143 140 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 144 140 jtag.c:1629 jtag_reset_callback(): - Debug: 145 140 target.c:3969 jim_target(): Target command params: Debug: 146 140 target.c:3970 jim_target(): target names Debug: 147 140 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000 Debug: 148 140 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000 Debug: 149 140 target.c:3969 jim_target(): Target command params: Debug: 150 140 target.c:3970 jim_target(): target names Debug: 151 140 target.c:3103 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 152 140 arm7_9_common.c:976 arm7_9_assert_reset(): target->state: running Debug: 153 140 embeddedice.c:363 embeddedice_write_reg(): 8: 0x00000000 Debug: 154 140 embeddedice.c:363 embeddedice_write_reg(): 9: 0x00000003 Debug: 155 140 embeddedice.c:363 embeddedice_write_reg(): 11: 0xffffffff Debug: 156 140 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000100 Debug: 157 140 embeddedice.c:363 embeddedice_write_reg(): 13: 0x000000f7 Debug: 158 140 jtag.c:1259 jtag_add_reset(): SRST line asserted Debug: 159 140 jtag.c:1270 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 160 140 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 161 140 jtag.c:1629 jtag_reset_callback(): - Debug: 162 140 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 163 140 jtag.c:1629 jtag_reset_callback(): - Debug: 164 140 target.c:3103 target_handle_event(): event: 13 reset-assert-post - no action Debug: 165 140 target.c:3969 jim_target(): Target command params: Debug: 166 140 target.c:3970 jim_target(): target names Debug: 167 140 target.c:3103 target_handle_event(): event: 14 reset-deassert-pre - no action Debug: 168 140 arm7_9_common.c:1045 arm7_9_deassert_reset(): target->state: reset Debug: 169 140 jtag.c:1263 jtag_add_reset(): SRST line released Warn : 170 140 arm7_9_common.c:1052 arm7_9_deassert_reset(): srst pulls trst - can not reset into halted mode. Issuing halt after reset. Debug: 171 140 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 1, high_output: 0x01, high_direction: 0x0f Debug: 172 218 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f Debug: 173 218 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000 Debug: 174 218 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000 Warn : 175 218 jtag.c:1472 jtag_check_value_inner(): value captured during scan didn't pass the requested check: Warn : 176 218 jtag.c:1474 jtag_check_value_inner(): captured: 0x0F check_value: 0x01 check_mask: 0x0F Debug: 177 218 target.c:3103 target_handle_event(): event: 15 reset-deassert-post - no action Debug: 178 218 target.c:3969 jim_target(): Target command params: Debug: 179 218 target.c:3970 jim_target(): target names Debug: 180 218 target.c:1739 target_wait_state(): waiting for target halted... Error: 182 1234 target.c:1750 target_wait_state(): timed out while waiting for target halted User : 183 1234 command.c:626 openocd_jim_vfprintf(): Runtime error, file "embedded:startup.tcl", line 212: User : 184 1234 command.c:626 openocd_jim_vfprintf(): expected return code but got 'TARGET: sam7s256.cpu - Not halted' User : 186 1234 command.c:626 openocd_jim_vfprintf(): User : 188 1234 command.c:626 openocd_jim_vfprintf(): User : 190 1234 command.c:626 openocd_jim_vfprintf(): User : 192 1234 command.c:626 openocd_jim_vfprintf(): Debug: 193 1234 command.c:424 run_command(): Command failed with error code -4 User : 194 1234 command.c:626 openocd_jim_vfprintf(): Runtime error, file ".\prj\jtagkey.cfg", line 99: User : 195 1234 command.c:626 openocd_jim_vfprintf(): User : 198 1234 command.c:626 openocd_jim_vfprintf(): User : 200 1234 command.c:626 openocd_jim_vfprintf():
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development