Hello list,

I have problem to connect to a SAM7S256 target, the result looks like:

==========================================================================

C:\Temp\SAM7S256Test>openocd-1857 -f .\prj\jtagkey.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-05-20-19:22) svn:1857


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:

==========================================================================

If I start the same procedure now with a 1606 version, every thing is OK.
After this, I can use the 1857 again, and now it is working?!

If I now remove/add power to the target, the 1857 will not work again
an have the same behavior as before.

Tested with a JTAGkey under windows.

Best 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 16 command.c:105 script_command(): script_command - telnet_port, 
argv[0]=ocd_telnet_port
Debug: 13 16 command.c:105 script_command(): script_command - telnet_port, 
argv[1]=4444
Debug: 15 16 command.c:88 script_command(): script_command - gdb_port
Debug: 16 16 command.c:105 script_command(): script_command - gdb_port, 
argv[0]=ocd_gdb_port
Debug: 17 16 command.c:105 script_command(): script_command - gdb_port, 
argv[1]=3333
Debug: 19 16 command.c:88 script_command(): script_command - tcl_port
Debug: 20 16 command.c:105 script_command(): script_command - tcl_port, 
argv[0]=ocd_tcl_port
Debug: 21 16 command.c:105 script_command(): script_command - tcl_port, 
argv[1]=6666
Debug: 23 16 command.c:88 script_command(): script_command - gdb_memory_map
Debug: 24 16 command.c:105 script_command(): script_command - gdb_memory_map, 
argv[0]=ocd_gdb_memory_map
Debug: 25 16 command.c:105 script_command(): script_command - gdb_memory_map, 
argv[1]=enable
Debug: 27 16 command.c:88 script_command(): script_command - gdb_flash_program
Debug: 28 16 command.c:105 script_command(): script_command - 
gdb_flash_program, argv[0]=ocd_gdb_flash_program
Debug: 29 16 command.c:105 script_command(): script_command - 
gdb_flash_program, argv[1]=enable
Debug: 31 16 command.c:88 script_command(): script_command - interface
Debug: 32 16 command.c:105 script_command(): script_command - interface, 
argv[0]=ocd_interface
Debug: 33 16 command.c:105 script_command(): script_command - interface, 
argv[1]=ft2232
Debug: 35 16 command.c:88 script_command(): script_command - ft2232_device_desc
Debug: 36 16 command.c:105 script_command(): script_command - 
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug: 37 16 command.c:105 script_command(): script_command - 
ft2232_device_desc, argv[1]=Amontec JTAGkey A
Debug: 39 16 command.c:88 script_command(): script_command - ft2232_layout
Debug: 40 16 command.c:105 script_command(): script_command - ft2232_layout, 
argv[0]=ocd_ft2232_layout
Debug: 41 16 command.c:105 script_command(): script_command - ft2232_layout, 
argv[1]=jtagkey
Debug: 43 16 command.c:88 script_command(): script_command - ft2232_vid_pid
Debug: 44 16 command.c:105 script_command(): script_command - ft2232_vid_pid, 
argv[0]=ocd_ft2232_vid_pid
Debug: 45 16 command.c:105 script_command(): script_command - ft2232_vid_pid, 
argv[1]=0x0403
Debug: 46 16 command.c:105 script_command(): script_command - ft2232_vid_pid, 
argv[2]=0xcff8
Debug: 48 16 command.c:88 script_command(): script_command - jtag_khz
Debug: 49 16 command.c:105 script_command(): script_command - jtag_khz, 
argv[0]=ocd_jtag_khz
Debug: 50 16 command.c:105 script_command(): script_command - jtag_khz, 
argv[1]=30
Debug: 51 16 jtag.c:2753 handle_jtag_khz_command(): handle jtag khz
User : 52 16 command.c:380 command_print(): 30 kHz
Debug: 54 16 command.c:88 script_command(): script_command - reset_config
Debug: 55 16 command.c:105 script_command(): script_command - reset_config, 
argv[0]=ocd_reset_config
Debug: 56 16 command.c:105 script_command(): script_command - reset_config, 
argv[1]=srst_only
Debug: 57 16 command.c:105 script_command(): script_command - reset_config, 
argv[2]=srst_pulls_trst
Debug: 58 16 jtag.c:1995 jim_newtap_cmd(): Creating New Tap, Chip: sam7s256, 
Tap: cpu, Dotted: sam7s256.cpu, 8 params
Debug: 59 16 jtag.c:2014 jim_newtap_cmd(): Processing option: -irlen
Debug: 60 16 jtag.c:2014 jim_newtap_cmd(): Processing option: -ircapture
Debug: 61 16 jtag.c:2014 jim_newtap_cmd(): Processing option: -irmask
Debug: 62 16 jtag.c:2014 jim_newtap_cmd(): Processing option: -expected-id
Debug: 63 16 jtag.c:2127 jim_newtap_cmd(): Created Tap: sam7s256.cpu @ abs 
position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 64 16 target.c:3959 jim_target(): Target command params:
Debug: 65 16 target.c:3960 jim_target(): target create sam7s256.cpu arm7tdmi 
-endian little -chain-position sam7s256.cpu -variant arm7tdmi 
Debug: 67 16 command.c:88 script_command(): script_command - bank
Debug: 68 16 command.c:105 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug: 69 16 command.c:105 script_command(): script_command - bank, 
argv[1]=at91sam7
Debug: 70 16 command.c:105 script_command(): script_command - bank, argv[2]=0
Debug: 71 16 command.c:105 script_command(): script_command - bank, argv[3]=0
Debug: 72 16 command.c:105 script_command(): script_command - bank, argv[4]=0
Debug: 73 16 command.c:105 script_command(): script_command - bank, argv[5]=0
Debug: 74 16 command.c:105 script_command(): script_command - bank, argv[6]=0
Debug: 76 16 command.c:88 script_command(): script_command - init
Debug: 77 16 command.c:105 script_command(): script_command - init, 
argv[0]=ocd_init
Debug: 78 16 openocd.c:131 handle_init_command(): target init complete
Debug: 79 16 ft2232.c:1985 ft2232_init(): ft2232 interface using shortest path 
jtag state transitions
Debug: 80 16 ft2232.c:1752 ft2232_init_ftd2xx(): 'ft2232' interface using 
FTD2XX with 'jtagkey' layout (0403:cff8)
Debug: 81 47 ft2232.c:1863 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 82 47 ft2232.c:2219 jtagkey_init(): 80 08 1b
Debug: 83 47 ft2232.c:2277 jtagkey_init(): 82 09 0f
Debug: 84 47 ft2232.c:422 ft2232_speed(): 86 c7 00
Debug: 85 63 openocd.c:138 handle_init_command(): jtag interface init complete
Debug: 86 63 jtag.c:2348 jtag_init_inner(): Init JTAG chain
Debug: 87 63 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 88 63 jtag.c:1595 jtag_reset_callback(): -
Debug: 89 63 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 90 63 jtag.c:1595 jtag_reset_callback(): -
Info : 91 78 jtag.c:1716 jtag_examine_chain(): JTAG tap: sam7s256.cpu 
tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info : 92 78 jtag.c:1754 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:1595 jtag_reset_callback(): -
Debug: 95 94 openocd.c:144 handle_init_command(): jtag init complete
Debug: 96 94 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000
Debug: 97 94 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000
Debug: 98 94 openocd.c:147 handle_init_command(): jtag examine complete
Debug: 99 94 openocd.c:153 handle_init_command(): flash init complete
Debug: 100 94 openocd.c:157 handle_init_command(): mflash init complete
Debug: 101 94 openocd.c:161 handle_init_command(): NAND init complete
Debug: 102 94 openocd.c:165 handle_init_command(): pld init complete
Debug: 103 110 gdb_server.c:2215 gdb_init(): gdb service for target arm7tdmi at 
port 3333
Debug: 105 110 command.c:88 script_command(): script_command - reset
Debug: 106 110 command.c:105 script_command(): script_command - reset, 
argv[0]=ocd_reset
Debug: 107 110 command.c:105 script_command(): script_command - reset, 
argv[1]=init
Debug: 108 110 target.c:3959 jim_target(): Target command params:
Debug: 109 110 target.c:3960 jim_target(): target names 
Debug: 110 110 target.c:3082 target_handle_event(): target: (0) sam7s256.cpu 
(arm7tdmi) event: 11 (reset-start) action: 
        jtag_khz 30


Debug: 112 110 command.c:88 script_command(): script_command - jtag_khz
Debug: 113 110 command.c:105 script_command(): script_command - jtag_khz, 
argv[0]=ocd_jtag_khz
Debug: 114 110 command.c:105 script_command(): script_command - jtag_khz, 
argv[1]=30
Debug: 115 110 jtag.c:2753 handle_jtag_khz_command(): handle jtag khz
Debug: 116 110 jtag.c:2761 handle_jtag_khz_command(): have interface set up
Debug: 117 110 ft2232.c:422 ft2232_speed(): 86 c7 00
User : 118 110 command.c:380 command_print(): 30 kHz
Debug: 119 110 jtag.c:2381 jtag_init_reset(): Trying to bring the JTAG 
controller to life by asserting TRST / RESET
Debug: 120 110 jtag.c:1229 jtag_add_reset(): SRST line released
Debug: 121 110 jtag.c:1236 jtag_add_reset(): JTAG reset with RESET instead of 
TRST
Debug: 122 110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 123 110 jtag.c:1595 jtag_reset_callback(): -
Debug: 124 110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 125 110 jtag.c:1595 jtag_reset_callback(): -
Debug: 126 110 jtag.c:1225 jtag_add_reset(): SRST line asserted
Debug: 127 110 jtag.c:1236 jtag_add_reset(): JTAG reset with RESET instead of 
TRST
Debug: 128 110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 129 110 jtag.c:1595 jtag_reset_callback(): -
Debug: 130 110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 131 110 jtag.c:1595 jtag_reset_callback(): -
Debug: 132 110 jtag.c:1229 jtag_add_reset(): SRST line released
Debug: 133 110 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 
0x09, high_direction: 0x0f
Debug: 134 110 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 1, high_output: 
0x01, high_direction: 0x0f
Debug: 135 110 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 
0x09, high_direction: 0x0f
Debug: 136 110 jtag.c:2348 jtag_init_inner(): Init JTAG chain
Debug: 137 110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 138 110 jtag.c:1595 jtag_reset_callback(): -
Debug: 139 110 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 140 110 jtag.c:1595 jtag_reset_callback(): -
Info : 141 141 jtag.c:1716 jtag_examine_chain(): JTAG tap: sam7s256.cpu 
tap/device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Info : 142 141 jtag.c:1754 jtag_examine_chain(): JTAG Tap/device matched
Debug: 143 141 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 144 141 jtag.c:1595 jtag_reset_callback(): -
Debug: 145 141 target.c:3959 jim_target(): Target command params:
Debug: 146 141 target.c:3960 jim_target(): target names 
Debug: 147 141 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000
Debug: 148 141 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000
Debug: 149 141 target.c:3959 jim_target(): Target command params:
Debug: 150 141 target.c:3960 jim_target(): target names 
Debug: 151 141 target.c:3093 target_handle_event(): event: 12 reset-assert-pre 
- no action
Debug: 152 141 arm7_9_common.c:935 arm7_9_assert_reset(): target->state: running
Debug: 153 141 embeddedice.c:363 embeddedice_write_reg(): 8: 0x00000000
Debug: 154 141 embeddedice.c:363 embeddedice_write_reg(): 9: 0x00000003
Debug: 155 141 embeddedice.c:363 embeddedice_write_reg(): 11: 0xffffffff
Debug: 156 141 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000100
Debug: 157 141 embeddedice.c:363 embeddedice_write_reg(): 13: 0x000000f7
Debug: 158 141 jtag.c:1225 jtag_add_reset(): SRST line asserted
Debug: 159 141 jtag.c:1236 jtag_add_reset(): JTAG reset with RESET instead of 
TRST
Debug: 160 141 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 161 141 jtag.c:1595 jtag_reset_callback(): -
Debug: 162 141 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (RESET or TRST)
Debug: 163 141 jtag.c:1595 jtag_reset_callback(): -
Debug: 164 141 target.c:3093 target_handle_event(): event: 13 reset-assert-post 
- no action
Debug: 165 141 target.c:3959 jim_target(): Target command params:
Debug: 166 141 target.c:3960 jim_target(): target names 
Debug: 167 141 target.c:3093 target_handle_event(): event: 14 
reset-deassert-pre - no action
Debug: 168 141 arm7_9_common.c:995 arm7_9_deassert_reset(): target->state: reset
Debug: 169 141 jtag.c:1229 jtag_add_reset(): SRST line released
Warn : 170 141 arm7_9_common.c:1002 arm7_9_deassert_reset(): srst pulls trst - 
can not reset into halted mode. Issuing halt after reset.
Debug: 171 141 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 1, high_output: 
0x01, high_direction: 0x0f
Debug: 172 219 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, high_output: 
0x09, high_direction: 0x0f
Debug: 173 219 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000
Debug: 174 219 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000
Warn : 175 219 jtag.c:1438 jtag_check_value_inner(): value captured during scan 
didn't pass the requested check:
Warn : 176 219 jtag.c:1440 jtag_check_value_inner(): captured: 0x0F 
check_value: 0x01 check_mask: 0x0F
Debug: 177 219 target.c:3093 target_handle_event(): event: 15 
reset-deassert-post - no action
Debug: 178 219 target.c:3959 jim_target(): Target command params:
Debug: 179 219 target.c:3960 jim_target(): target names 
Debug: 180 219 target.c:1731 target_wait_state(): waiting for target halted...
Error: 182 1235 target.c:1742 target_wait_state(): timed out while waiting for 
target halted
User : 183 1235 command.c:626 openocd_jim_vfprintf(): Runtime error, file 
"embedded:startup.tcl", line 212:
    User : 184 1235 command.c:626 openocd_jim_vfprintf(): expected return code 
but got 'TARGET: sam7s256.cpu - Not halted'
User : 186 1235 command.c:626 openocd_jim_vfprintf(): 
User : 188 1235 command.c:626 openocd_jim_vfprintf(): 
User : 190 1235 command.c:626 openocd_jim_vfprintf(): 
User : 192 1235 command.c:626 openocd_jim_vfprintf(): 
Debug: 193 1235 command.c:424 run_command(): Command failed with error code -4
User : 194 1235 command.c:626 openocd_jim_vfprintf(): Runtime error, file 
".\prj\jtagkey.cfg", line 99:
    User : 195 1235 command.c:626 openocd_jim_vfprintf(): 
User : 198 1235 command.c:626 openocd_jim_vfprintf(): 
User : 200 1235 command.c:626 openocd_jim_vfprintf(): 

Attachment: jtagkey.cfg
Description: Binary data

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to