Michael Fischer pisze:
> here it is working with a LPC2148, tested with r1888
> and the pathes from Magnus:
> https://lists.berlios.de/pipermail/openocd-development/2009-May/007085.html
> 
> Can you test it with the jtag_090522.patch and ft2232_090522.patch too? 

I've tested with r1889. It's still failing, but in some other way. Now I 
can't reset the target

Open On-Chip Debugger
 > 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 communication failure, check connection, JTAG interface, target 
power etc.
trying to validate configured JTAG chain anyway...
 > 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

and -d3 logs for that:

openocd-r1889-patched -d3 -f interface/jtagkey.cfg -f target/lpc2103.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-05-23-14:15) 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 0 command.c:88 script_command(): script_command - ft2232_vid_pid
Debug: 20 0 command.c:105 script_command(): script_command - 
ft2232_vid_pid, arg
v[0]=ocd_ft2232_vid_pid
Debug: 21 15 command.c:105 script_command(): script_command - 
ft2232_vid_pid, ar
gv[1]=0x0403
Debug: 22 15 command.c:105 script_command(): script_command - 
ft2232_vid_pid, ar
gv[2]=0xcff8
Debug: 23 15 configuration.c:83 find_file(): found C:\Program 
Files\OpenOCD\0.1.
0\bin\../target/lpc2103.cfg
Debug: 25 15 command.c:88 script_command(): script_command - reset_config
Debug: 26 15 command.c:105 script_command(): script_command - 
reset_config, argv
[0]=ocd_reset_config
Debug: 27 15 command.c:105 script_command(): script_command - 
reset_config, argv
[1]=trst_and_srst
Debug: 28 15 command.c:105 script_command(): script_command - 
reset_config, argv
[2]=srst_pulls_trst
Debug: 29 15 jtag.c:2030 jim_newtap_cmd(): Creating New Tap, Chip: 
lpc2103, Tap:
  cpu, Dotted: lpc2103.cpu, 8 params
Debug: 30 15 jtag.c:2049 jim_newtap_cmd(): Processing option: -irlen
Debug: 31 15 jtag.c:2049 jim_newtap_cmd(): Processing option: -ircapture
Debug: 32 15 jtag.c:2049 jim_newtap_cmd(): Processing option: -irmask
Debug: 33 15 jtag.c:2049 jim_newtap_cmd(): Processing option: -expected-id
Debug: 34 15 jtag.c:2162 jim_newtap_cmd(): Created Tap: lpc2103.cpu @ 
abs positi
on 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 35 15 target.c:3969 jim_target(): Target command params:
Debug: 36 15 target.c:3970 jim_target(): target create lpc2103.cpu 
arm7tdmi -end
ian little -chain-position lpc2103.cpu -variant arm7tdmi-s_r4
Debug: 38 15 command.c:88 script_command(): script_command - bank
Debug: 39 15 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:2788 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:1988 ft2232_init(): ft2232 interface using 
shortest path j
tag state transitions
Debug: 60 31 ft2232.c:1755 ft2232_init_ftd2xx(): 'ft2232' interface 
using FTD2XX
  with 'jtagkey' layout (0403:cff8)
Debug: 61 109 ft2232.c:1866 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 62 109 ft2232.c:2222 jtagkey_init(): 80 08 1b
Debug: 63 109 ft2232.c:2280 jtagkey_init(): 82 09 0f
Debug: 64 109 ft2232.c:422 ft2232_speed(): 86 05 00
Debug: 65 140 openocd.c:138 handle_init_command(): jtag interface init 
complete
Debug: 66 140 jtag.c:2383 jtag_init_inner(): Init JTAG chain
Debug: 67 140 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controlle
r reset (RESET or TRST)
Debug: 68 140 jtag.c:1630 jtag_reset_callback(): -
Debug: 69 140 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controlle
r reset (RESET or TRST)
Debug: 70 140 jtag.c:1630 jtag_reset_callback(): -
Info : 71 140 jtag.c:1751 jtag_examine_chain(): JTAG tap: lpc2103.cpu 
tap/device
  found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : 72 140 jtag.c:1789 jtag_examine_chain(): JTAG Tap/device matched
Debug: 73 140 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG 
controlle
r reset (RESET or TRST)
Debug: 74 140 jtag.c:1630 jtag_reset_callback(): -
Debug: 75 140 openocd.c:144 handle_init_command(): jtag init complete
Debug: 76 156 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 2984 server.c:79 add_connection(): accepting 'telnet' 
connection from
0
Debug: 90 4453 command.c:88 script_command(): script_command - poll
Debug: 91 4453 command.c:105 script_command(): script_command - poll, 
argv[0]=oc
d_poll
User : 92 4453 target.c:964 target_arch_state(): target state: running
Debug: 94 9312 command.c:88 script_command(): script_command - 
soft_reset_halt
Debug: 95 9312 command.c:105 script_command(): script_command - 
soft_reset_halt,
  argv[0]=ocd_soft_reset_halt
User : 96 9312 target.c:1787 handle_soft_reset_halt_command(): 
requesting target
  halt and executing a soft reset
Debug: 97 9312 arm7_9_common.c:1257 arm7_9_halt(): target->state: running
Debug: 98 9312 embeddedice.c:363 embeddedice_write_reg(): 9: 0xffffffff
Debug: 99 9312 embeddedice.c:363 embeddedice_write_reg(): 11: 0xffffffff
Debug: 100 9312 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000100
Debug: 101 9312 embeddedice.c:363 embeddedice_write_reg(): 13: 0x000000f7
Debug: 102 9469 embeddedice.c:363 embeddedice_write_reg(): 0: 0x00000005
Debug: 103 9469 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000
Debug: 104 9469 target.c:712 target_call_event_callbacks(): target event 
4 (earl
y-halted)
Debug: 105 9469 target.c:3103 target_handle_event(): event: 4 
early-halted - no
action
Debug: 106 9469 target.c:712 target_call_event_callbacks(): target event 
5 (halt
ed)
Debug: 107 9469 target.c:3103 target_handle_event(): event: 5 halted - 
no action

User : 108 9469 target.c:964 target_arch_state(): target state: halted
User : 109 9469 armv4_5.c:305 armv4_5_arch_state(): target halted in ARM 
state d
ue to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
Debug: 111 12297 command.c:88 script_command(): script_command - reset
Debug: 112 12297 command.c:105 script_command(): script_command - reset, 
argv[0]
=ocd_reset
Debug: 113 12297 target.c:3969 jim_target(): Target command params:
Debug: 114 12297 target.c:3970 jim_target(): target names
Debug: 115 12297 target.c:3103 target_handle_event(): event: 11 
reset-start - no
  action
Debug: 116 12297 jtag.c:2416 jtag_init_reset(): Trying to bring the JTAG 
control
ler to life by asserting TRST / RESET
Debug: 117 12297 ft2232.c:1212 jtagkey_reset(): trst: 1, srst: 0, 
high_output: 0
x08, high_direction: 0x0f
Debug: 118 12297 jtag.c:1264 jtag_add_reset(): SRST line released
Debug: 119 12297 jtag.c:1283 jtag_add_reset(): TRST line asserted
Debug: 120 12297 jtag.c:413 jtag_call_event_callbacks(): jtag event: 
JTAG contro
ller reset (RESET or TRST)
Debug: 121 12297 jtag.c:1630 jtag_reset_callback(): -
Debug: 122 12297 ft2232.c:1212 jtagkey_reset(): trst: 1, srst: 1, 
high_output: 0
x00, high_direction: 0x0f
Debug: 123 12297 jtag.c:1260 jtag_add_reset(): SRST line asserted
Debug: 124 12297 jtag.c:1283 jtag_add_reset(): TRST line asserted
Debug: 125 12297 jtag.c:413 jtag_call_event_callbacks(): jtag event: 
JTAG contro
ller reset (RESET or TRST)
Debug: 126 12297 jtag.c:1630 jtag_reset_callback(): -
Debug: 127 12297 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, 
high_output: 0
x09, high_direction: 0x0f
Debug: 128 12312 jtag.c:1264 jtag_add_reset(): SRST line released
Debug: 129 12312 jtag.c:2383 jtag_init_inner(): Init JTAG chain
Debug: 130 12312 jtag.c:413 jtag_call_event_callbacks(): jtag event: 
JTAG contro
ller reset (RESET or TRST)
Debug: 131 12312 jtag.c:1630 jtag_reset_callback(): -
Error: 132 12312 jtag.c:1685 jtag_examine_chain(): JTAG communication 
failure, c
heck connection, JTAG interface, target power etc.
Error: 133 12312 jtag.c:2398 jtag_init_inner(): trying to validate 
configured JT
AG chain anyway...
Debug: 134 12312 jtag.c:413 jtag_call_event_callbacks(): jtag event: 
JTAG contro
ller reset (RESET or TRST)
Debug: 135 12312 jtag.c:1630 jtag_reset_callback(): -
Debug: 136 12312 target.c:3969 jim_target(): Target command params:
Debug: 137 12312 target.c:3970 jim_target(): target names
Debug: 138 12312 embeddedice.c:363 embeddedice_write_reg(): 0: 0x00000000
Debug: 139 12312 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000000
Debug: 140 12312 embeddedice.c:363 embeddedice_write_reg(): 20: 0x00000000
Debug: 141 12312 target.c:3969 jim_target(): Target command params:
Debug: 142 12312 target.c:3970 jim_target(): target names
Debug: 143 12328 target.c:3103 target_handle_event(): event: 12 
reset-assert-pre
  - no action
Debug: 144 12328 arm7_9_common.c:976 arm7_9_assert_reset(): 
target->state: halte
d
Debug: 145 12328 ft2232.c:1212 jtagkey_reset(): trst: 1, srst: 1, 
high_output: 0
x00, high_direction: 0x0f
Debug: 146 12328 jtag.c:1260 jtag_add_reset(): SRST line asserted
Debug: 147 12328 jtag.c:1283 jtag_add_reset(): TRST line asserted
Debug: 148 12328 jtag.c:413 jtag_call_event_callbacks(): jtag event: 
JTAG contro
ller reset (RESET or TRST)
Debug: 149 12328 jtag.c:1630 jtag_reset_callback(): -
Debug: 150 12328 target.c:3103 target_handle_event(): event: 13 
reset-assert-pos
t - no action
Debug: 151 12328 target.c:3969 jim_target(): Target command params:
Debug: 152 12328 target.c:3970 jim_target(): target names
Debug: 153 12328 target.c:3103 target_handle_event(): event: 14 
reset-deassert-p
re - no action
Debug: 154 12328 arm7_9_common.c:1045 arm7_9_deassert_reset(): 
target->state: re
set
Debug: 155 12406 ft2232.c:1212 jtagkey_reset(): trst: 0, srst: 0, 
high_output: 0
x09, high_direction: 0x0f
Debug: 156 12406 jtag.c:1264 jtag_add_reset(): SRST line released
Debug: 157 12406 target.c:3103 target_handle_event(): event: 15 
reset-deassert-p
ost - no action
Debug: 158 12406 target.c:3969 jim_target(): Target command params:
Debug: 159 12406 target.c:3970 jim_target(): target names
Debug: 160 12406 target.c:3103 target_handle_event(): event: 21 
reset-end - no a
ction
Debug: 162 15390 command.c:88 script_command(): script_command - poll
Debug: 163 15390 command.c:105 script_command(): script_command - poll, 
argv[0]=
ocd_poll
User : 164 15390 target.c:964 target_arch_state(): target state: running
Debug: 166 19500 command.c:88 script_command(): script_command - 
soft_reset_halt

Debug: 167 19500 command.c:105 script_command(): script_command - 
soft_reset_hal
t, argv[0]=ocd_soft_reset_halt
User : 168 19500 target.c:1787 handle_soft_reset_halt_command(): 
requesting targ
et halt and executing a soft reset
Debug: 169 19500 arm7_9_common.c:1257 arm7_9_halt(): target->state: running
Debug: 170 19500 embeddedice.c:363 embeddedice_write_reg(): 9: 0xffffffff
Debug: 171 19500 embeddedice.c:363 embeddedice_write_reg(): 11: 0xffffffff
Debug: 172 19500 embeddedice.c:363 embeddedice_write_reg(): 12: 0x00000100
Debug: 173 19500 embeddedice.c:363 embeddedice_write_reg(): 13: 0x000000f7
Error: 176 20594 arm7_9_common.c:1169 arm7_9_soft_reset_halt(): Failed 
to halt C
PU after 1 sec
Debug: 178 21687 command.c:88 script_command(): script_command - poll
Debug: 179 21687 command.c:105 script_command(): script_command - poll, 
argv[0]=
ocd_poll
User : 180 21687 target.c:964 target_arch_state(): target state: running
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to