Michael Fischer pisze: > the SAM7S256 is still broken I've tested r1889 with LPC2103 and it fails too
I run: openocd-r1889 -f interface/jtagkey.cfg -f target/lpc2103.cfg Which results in: Info : JTAG tap: lpc2103.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : JTAG Tap/device matched Warn : no telnet port specified, using default port 4444 Warn : no gdb port specified, using default port 3333 Warn : no tcl port specified, using default port 6666 So it's fine now. I connect via telnet and: > poll target state: running > soft_reset_halt requesting target halt and executing a soft reset target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 So it's still fine. But when I add a reset: > reset JTAG tap: lpc2103.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0 xf1f0, Version: 0x4) JTAG Tap/device matched > poll target state: running > soft_reset_halt requesting target halt and executing a soft reset Failed to halt CPU after 1 sec > poll target state: running The only way to halt it again is to restart OpenOCD - I do not touch the reset button on the target. Below I add a complete d3 log of OpenOCD for the following set: > poll target state: running > soft_reset_halt requesting target halt and executing a soft reset target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 > reset JTAG tap: lpc2103.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0 xf1f0, Version: 0x4) JTAG Tap/device matched > poll target state: running > soft_reset_halt requesting target halt and executing a soft reset Failed to halt CPU after 1 sec > poll target state: running -------------------- openocd-r1889 -d3 -f interface/jtagkey.cfg -f target/lpc2103.cfg Open On-Chip Debugger 0.2.0-in-development (2009-05-23-12:22) svn:unknown BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ Debug: 5 0 configuration.c:83 find_file(): found C:\Program Files\OpenOCD\0.1.0\ bin\../interface/jtagkey.cfg Debug: 7 0 command.c:88 script_command(): script_command - interface Debug: 8 0 command.c:105 script_command(): script_command - interface, argv[0]=o cd_interface Debug: 9 0 command.c:105 script_command(): script_command - interface, argv[1]=f t2232 Debug: 11 0 command.c:88 script_command(): script_command - ft2232_device_desc Debug: 12 0 command.c:105 script_command(): script_command - ft2232_device_desc, argv[0]=ocd_ft2232_device_desc Debug: 13 0 command.c:105 script_command(): script_command - ft2232_device_desc, argv[1]=Amontec JTAGkey A Debug: 15 0 command.c:88 script_command(): script_command - ft2232_layout Debug: 16 0 command.c:105 script_command(): script_command - ft2232_layout, argv [0]=ocd_ft2232_layout Debug: 17 0 command.c:105 script_command(): script_command - ft2232_layout, argv [1]=jtagkey Debug: 19 16 command.c:88 script_command(): script_command - ft2232_vid_pid Debug: 20 16 command.c:105 script_command(): script_command - ft2232_vid_pid, ar gv[0]=ocd_ft2232_vid_pid Debug: 21 16 command.c:105 script_command(): script_command - ft2232_vid_pid, ar gv[1]=0x0403 Debug: 22 16 command.c:105 script_command(): script_command - ft2232_vid_pid, ar gv[2]=0xcff8 Debug: 23 16 configuration.c:83 find_file(): found C:\Program Files\OpenOCD\0.1. 0\bin\../target/lpc2103.cfg Debug: 25 16 command.c:88 script_command(): script_command - reset_config Debug: 26 16 command.c:105 script_command(): script_command - reset_config, argv [0]=ocd_reset_config Debug: 27 16 command.c:105 script_command(): script_command - reset_config, argv [1]=trst_and_srst Debug: 28 16 command.c:105 script_command(): script_command - reset_config, argv [2]=srst_pulls_trst Debug: 29 16 jtag.c:2029 jim_newtap_cmd(): Creating New Tap, Chip: lpc2103, Tap: cpu, Dotted: lpc2103.cpu, 8 params Debug: 30 16 jtag.c:2048 jim_newtap_cmd(): Processing option: -irlen Debug: 31 16 jtag.c:2048 jim_newtap_cmd(): Processing option: -ircapture Debug: 32 16 jtag.c:2048 jim_newtap_cmd(): Processing option: -irmask Debug: 33 16 jtag.c:2048 jim_newtap_cmd(): Processing option: -expected-id Debug: 34 16 jtag.c:2161 jim_newtap_cmd(): Created Tap: lpc2103.cpu @ abs positi on 0, irlen 4, capture: 0x1 mask: 0xf Debug: 35 16 target.c:3969 jim_target(): Target command params: Debug: 36 16 target.c:3970 jim_target(): target create lpc2103.cpu arm7tdmi -end ian little -chain-position lpc2103.cpu -variant arm7tdmi-s_r4 Debug: 38 16 command.c:88 script_command(): script_command - bank Debug: 39 16 command.c:105 script_command(): script_command - bank, argv[0]=ocd_ flash_bank Debug: 40 31 command.c:105 script_command(): script_command - bank, argv[1]=lpc2 000 Debug: 41 31 command.c:105 script_command(): script_command - bank, argv[2]=0x0 Debug: 42 31 command.c:105 script_command(): script_command - bank, argv[3]=0x80 00 Debug: 43 31 command.c:105 script_command(): script_command - bank, argv[4]=0 Debug: 44 31 command.c:105 script_command(): script_command - bank, argv[5]=0 Debug: 45 31 command.c:105 script_command(): script_command - bank, argv[6]=0 Debug: 46 31 command.c:105 script_command(): script_command - bank, argv[7]=lpc2 000_v2 Debug: 47 31 command.c:105 script_command(): script_command - bank, argv[8]=1200 0 Debug: 48 31 command.c:105 script_command(): script_command - bank, argv[9]=calc _checksum Debug: 50 31 command.c:88 script_command(): script_command - jtag_khz Debug: 51 31 command.c:105 script_command(): script_command - jtag_khz, argv[0]= ocd_jtag_khz Debug: 52 31 command.c:105 script_command(): script_command - jtag_khz, argv[1]= 1000 Debug: 53 31 jtag.c:2787 handle_jtag_khz_command(): handle jtag khz User : 54 31 command.c:380 command_print(): 1000 kHz Debug: 56 31 command.c:88 script_command(): script_command - init Debug: 57 31 command.c:105 script_command(): script_command - init, argv[0]=ocd_ init Debug: 58 31 openocd.c:131 handle_init_command(): target init complete Debug: 59 31 ft2232.c:1985 ft2232_init(): ft2232 interface using shortest path j tag state transitions Debug: 60 31 ft2232.c:1752 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'jtagkey' layout (0403:cff8) Debug: 61 110 ft2232.c:1863 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 62 110 ft2232.c:2219 jtagkey_init(): 80 08 1b Debug: 63 110 ft2232.c:2277 jtagkey_init(): 82 09 0f Debug: 64 110 ft2232.c:422 ft2232_speed(): 86 05 00 Debug: 65 141 openocd.c:138 handle_init_command(): jtag interface init complete Debug: 66 141 jtag.c:2382 jtag_init_inner(): Init JTAG chain Debug: 67 141 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controlle r reset (RESET or TRST) Debug: 68 141 jtag.c:1629 jtag_reset_callback(): - Debug: 69 141 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controlle r reset (RESET or TRST) Debug: 70 141 jtag.c:1629 jtag_reset_callback(): - Info : 71 141 jtag.c:1750 jtag_examine_chain(): JTAG tap: lpc2103.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : 72 141 jtag.c:1788 jtag_examine_chain(): JTAG Tap/device matched Debug: 73 141 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controlle r reset (RESET or TRST) Debug: 74 141 jtag.c:1629 jtag_reset_callback(): - Debug: 75 141 openocd.c:144 handle_init_command(): jtag init complete Debug: 76 141 embeddedice.c:363 embeddedice_write_reg(): 0: 0x00000000 Debug: 77 156 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000 Debug: 78 156 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000 Debug: 79 156 openocd.c:147 handle_init_command(): jtag examine complete Debug: 80 156 openocd.c:153 handle_init_command(): flash init complete Debug: 81 156 openocd.c:157 handle_init_command(): mflash init complete Debug: 82 156 openocd.c:161 handle_init_command(): NAND init complete Debug: 83 156 openocd.c:165 handle_init_command(): pld init complete Warn : 84 156 telnet_server.c:599 telnet_init(): no telnet port specified, using default port 4444 Warn : 85 156 gdb_server.c:2191 gdb_init(): no gdb port specified, using default port 3333 Debug: 86 156 gdb_server.c:2215 gdb_init(): gdb service for target arm7tdmi at p ort 3333 Warn : 87 156 tcl_server.c:168 tcl_init(): no tcl port specified, using default port 6666 Info : 88 8531 server.c:79 add_connection(): accepting 'telnet' connection from 0 Debug: 90 12297 command.c:88 script_command(): script_command - poll Debug: 91 12297 command.c:105 script_command(): script_command - poll, argv[0]=o cd_poll User : 92 12313 target.c:964 target_arch_state(): target state: running Debug: 94 21719 command.c:88 script_command(): script_command - soft_reset_halt Debug: 95 21719 command.c:105 script_command(): script_command - soft_reset_halt , argv[0]=ocd_soft_reset_halt User : 96 21719 target.c:1787 handle_soft_reset_halt_command(): requesting targe t halt and executing a soft reset Debug: 97 21719 arm7_9_common.c:1257 arm7_9_halt(): target->state: running Debug: 98 21719 embeddedice.c:363 embeddedice_write_reg(): 9: 0xffffffff Debug: 99 21719 embeddedice.c:363 embeddedice_write_reg(): 11: 0xffffffff Debug: 100 21719 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000100 Debug: 101 21719 embeddedice.c:363 embeddedice_write_reg(): 13: 0x000000f7 Debug: 102 21875 embeddedice.c:363 embeddedice_write_reg(): 0: 0x00000005 Debug: 103 21875 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000 Debug: 104 21875 target.c:712 target_call_event_callbacks(): target event 4 (ear ly-halted) Debug: 105 21875 target.c:3103 target_handle_event(): event: 4 early-halted - no action Debug: 106 21875 target.c:712 target_call_event_callbacks(): target event 5 (hal ted) Debug: 107 21875 target.c:3103 target_handle_event(): event: 5 halted - no actio n User : 108 21875 target.c:964 target_arch_state(): target state: halted User : 109 21875 armv4_5.c:305 armv4_5_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x000000d3 pc: 0x00000000 Debug: 111 27078 command.c:88 script_command(): script_command - reset Debug: 112 27078 command.c:105 script_command(): script_command - reset, argv[0] =ocd_reset Debug: 113 27078 target.c:3969 jim_target(): Target command params: Debug: 114 27078 target.c:3970 jim_target(): target names Debug: 115 27078 target.c:3103 target_handle_event(): event: 11 reset-start - no action Debug: 116 27078 jtag.c:2415 jtag_init_reset(): Trying to bring the JTAG control ler to life by asserting TRST / RESET Debug: 117 27078 jtag.c:1263 jtag_add_reset(): SRST line released Debug: 118 27078 jtag.c:1282 jtag_add_reset(): TRST line asserted Debug: 119 27078 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG contro ller reset (RESET or TRST) Debug: 120 27078 jtag.c:1629 jtag_reset_callback(): - Debug: 121 27078 jtag.c:1259 jtag_add_reset(): SRST line asserted Debug: 122 27078 jtag.c:1282 jtag_add_reset(): TRST line asserted Debug: 123 27078 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG contro ller reset (RESET or TRST) Debug: 124 27094 jtag.c:1629 jtag_reset_callback(): - Debug: 125 27094 jtag.c:1263 jtag_add_reset(): SRST line released Debug: 126 27094 ft2232.c:1212 jtagkey_reset(): trst: 1, srst: 0, high_output: 0 x08, high_direction: 0x0f Debug: 127 27094 ft2232.c:1212 jtagkey_reset(): trst: 1, srst: 1, high_output: 0 x00, high_direction: 0x0f Debug: 128 27094 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 0 x09, high_direction: 0x0f Debug: 129 27094 jtag.c:2382 jtag_init_inner(): Init JTAG chain Debug: 130 27094 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG contro ller reset (RESET or TRST) Debug: 131 27094 jtag.c:1629 jtag_reset_callback(): - Info : 132 27094 jtag.c:1750 jtag_examine_chain(): JTAG tap: lpc2103.cpu tap/dev ice found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : 133 27094 jtag.c:1788 jtag_examine_chain(): JTAG Tap/device matched Debug: 134 27094 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG contro ller reset (RESET or TRST) Debug: 135 27094 jtag.c:1629 jtag_reset_callback(): - Debug: 136 27110 target.c:3969 jim_target(): Target command params: Debug: 137 27110 target.c:3970 jim_target(): target names Debug: 138 27110 embeddedice.c:363 embeddedice_write_reg(): 0: 0x00000000 Debug: 139 27110 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000 Debug: 140 27110 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000 Debug: 141 27110 target.c:3969 jim_target(): Target command params: Debug: 142 27110 target.c:3970 jim_target(): target names Debug: 143 27110 target.c:3103 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 144 27110 arm7_9_common.c:976 arm7_9_assert_reset(): target->state: halte d Debug: 145 27110 jtag.c:1259 jtag_add_reset(): SRST line asserted Debug: 146 27110 jtag.c:1282 jtag_add_reset(): TRST line asserted Debug: 147 27110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG contro ller reset (RESET or TRST) Debug: 148 27110 jtag.c:1629 jtag_reset_callback(): - Debug: 149 27110 target.c:3103 target_handle_event(): event: 13 reset-assert-pos t - no action Debug: 150 27110 target.c:3969 jim_target(): Target command params: Debug: 151 27110 target.c:3970 jim_target(): target names Debug: 152 27110 target.c:3103 target_handle_event(): event: 14 reset-deassert-p re - no action Debug: 153 27110 arm7_9_common.c:1045 arm7_9_deassert_reset(): target->state: re set Debug: 154 27110 jtag.c:1263 jtag_add_reset(): SRST line released Debug: 155 27125 target.c:3103 target_handle_event(): event: 15 reset-deassert-p ost - no action Debug: 156 27125 target.c:3969 jim_target(): Target command params: Debug: 157 27125 target.c:3970 jim_target(): target names Debug: 158 27125 target.c:3103 target_handle_event(): event: 21 reset-end - no a ction Debug: 159 27125 ft2232.c:1212 jtagkey_reset(): trst: 1, srst: 1, high_output: 0 x00, high_direction: 0x0f Debug: 160 27203 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 0 x09, high_direction: 0x0f Debug: 162 34094 command.c:88 script_command(): script_command - poll Debug: 163 34094 command.c:105 script_command(): script_command - poll, argv[0]= ocd_poll User : 164 34094 target.c:964 target_arch_state(): target state: running Debug: 166 37375 command.c:88 script_command(): script_command - soft_reset_halt Debug: 167 37375 command.c:105 script_command(): script_command - soft_reset_hal t, argv[0]=ocd_soft_reset_halt User : 168 37375 target.c:1787 handle_soft_reset_halt_command(): requesting targ et halt and executing a soft reset Debug: 169 37375 arm7_9_common.c:1257 arm7_9_halt(): target->state: running Debug: 170 37375 embeddedice.c:363 embeddedice_write_reg(): 9: 0xffffffff Debug: 171 37375 embeddedice.c:363 embeddedice_write_reg(): 11: 0xffffffff Debug: 172 37375 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000100 Debug: 173 37391 embeddedice.c:363 embeddedice_write_reg(): 13: 0x000000f7 Error: 176 38485 arm7_9_common.c:1169 arm7_9_soft_reset_halt(): Failed to halt C PU after 1 sec Debug: 178 40641 command.c:88 script_command(): script_command - poll Debug: 179 40641 command.c:105 script_command(): script_command - poll, argv[0]= ocd_poll User : 180 40641 target.c:964 target_arch_state(): target state: running ------------------------- regards _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
