Hi all.
I've wanted to use the FTDI driver since I first heard of it.
But due to the other problems I've been though, I thought they were the cause
that the FDTI driver did not work for me.
I'm now using the JTAG-lock-pick Tiny 2 (but I hve the exact same problems when
using Olimex ARM-USB-TINY-H)
So far, I'm past the worst big-endian problems, and also the problems with the
LPC43xx acting up (thanks for the fix, Nemuisan)
The following line works:
$ openocd -f interface/jtag-lock-pick_tiny_2.cfg -f Flashing/Board/Board.cfg -c
"flashNow TestFile.elf"
But this line does not:
$ openocd -f interface/ftdi/jtag-lock-pick_tiny_2.cfg -f
Flashing/Board/Board.cfg -c "flashNow TestFile.elf"
(There seem to be no difference when I add 'sudo ' in front of openocd)
Now, it appears that noone else are seing this problem, so it might be a Big
Endian issue, but I haven't spotted anything in the sources yet.
What would most likely cause this to go wrong (eg. approximately where should I
look) ?
... Below is the output, with the errors (a -d3 log is attached)...
--8<-----8<-----8<-----
$ openocd -f interface/ftdi/jtag-lock-pick_tiny_2.cfg -f
Flashing/Board/Board.cfg -c "flashNow TestFile.elf"
Open On-Chip Debugger 0.8.0-dev-00230-gb3a3d83-dirty (2013-10-26-07:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
### Flashing/Board/Board.cfg
adapter speed: 500 kHz
cortex_m reset_config vectreset
#0 : flash_a (lpc2000) at 0x1a000000, size 0x00080000, buswidth 0, chipwidth 0
#1 : flash_b (lpc2000) at 0x1b000000, size 0x00080000, buswidth 0, chipwidth 0
#2 : flash (lpc2000) at 0x1a000000, size 0x00080000, buswidth 0, chipwidth 0
Info : clock speed 500 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: lpc4337.m4: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 100ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 300ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 700ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 1500ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 3100ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 6300ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 6300ms
Polling target lpc4337.m4 failed, GDB will be halted. Polling again in 6300ms
Info : TAP lpc4337.m4 does not have IDCODE
Warn : JTAG tap: lpc4337.m4 UNEXPECTED: 0x00000000 (mfg: 0x000, part:
0x0000, ver: 0x0)
Error: JTAG tap: lpc4337.m4 expected 1 of 1: 0x4ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x4)
Info : TAP lpc4337.m0 does not have IDCODE
Warn : JTAG tap: lpc4337.m0 UNEXPECTED: 0x00000000 (mfg: 0x000, part:
0x0000, ver: 0x0)
Error: JTAG tap: lpc4337.m0 expected 1 of 1: 0x0ba01477 (mfg: 0x23b, part:
0xba01, ver: 0x0)
Warn : Unexpected idcode after end of chain: 2 0x00000000
Warn : Unexpected idcode after end of chain: 34 0xfffffffc
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Error: lpc4337.m4: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0 in JTAG-DP transaction
Error: Target not examined yet
-->8----->8----->8-----
...Below is the output, when I successfully use the old driver:
--8<-----8<-----8<-----
$ openocd -f interface/jtag-lock-pick_tiny_2.cfg -f Flashing/Board/Board.cfg -c
"flashNow TestFile.elf"
Open On-Chip Debugger 0.8.0-dev-00230-gb3a3d83-dirty (2013-10-26-07:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
### Flashing/Board/Board.cfg
adapter speed: 500 kHz
cortex_m reset_config vectreset
#0 : flash_a (lpc2000) at 0x1a000000, size 0x00080000, buswidth 0, chipwidth 0
#1 : flash_b (lpc2000) at 0x1b000000, size 0x00080000, buswidth 0, chipwidth 0
#2 : flash (lpc2000) at 0x1a000000, size 0x00080000, buswidth 0, chipwidth 0
Info : max TCK change to: 30000 kHz
Info : clock speed 500 kHz
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b, part:
0xba01, ver: 0x0)
Info : lpc4337.m4: hardware has 6 breakpoints, 4 watchpoints
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b, part:
0xba01, ver: 0x0)
Warn : Only resetting the Cortex-M core, use a reset-init event handler to
reset any peripherals or configure hardware srst support.
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a000340 msp: 0x10008000
cleared protection for sectors 0 through 14 on flash bank 0
auto erase enabled
auto unlock enabled
Warn : Verification will fail since checksum in image (0x5a5a5a5a) to be
written to flash is different from calculated vector checksum (0x53ff5bc6).
Warn : To remove this warning modify build tools on developer PC to inject
correct LPC vector checksum.
wrote 8192 bytes from file TestFile.elf in 1.711921s (4.673 KiB/s)
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b, part:
0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b, part:
0xba01, ver: 0x0)
Warn : Only resetting the Cortex-M core, use a reset-init event handler to
reset any peripherals or configure hardware srst support.
shutdown command invoked
-->8----->8----->8-----
...It seems I have successfully built OpenOCD with the ftdi driver...
--8<-----8<-----8<-----
$ openocd -c "interface_list"
Open On-Chip Debugger 0.8.0-dev-00230-gb3a3d83-dirty (2013-10-26-07:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
The following debug interfaces are available:
1: ft2232
2: ftdi
3: usb_blaster
4: presto
5: usbprog
6: openjtag
7: jlink
8: vsllink
9: rlink
10: ulink
11: arm-jtag-ew
12: remote_bitbang
13: hla
14: osbdm
15: opendous
16: aice
Error: Debug Adapter has to be specified, see "interface" command
in procedure 'init'
-->8----->8----->8-----
Love
Jens
Open On-Chip Debugger 0.8.0-dev-00230-gb3a3d83-dirty (2013-10-26-07:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 8 command.c:549 command_print(): debug_level: 3
Debug: 14 8 configuration.c:45 add_script_search_dir(): adding
/Users/jens/.openocd
Debug: 15 9 configuration.c:45 add_script_search_dir(): adding
/usr/local/share/openocd/site
Debug: 16 9 configuration.c:45 add_script_search_dir(): adding
/usr/local/share/openocd/scripts
Debug: 17 9 configuration.c:86 find_file(): found
/usr/local/share/openocd/scripts/interface/ftdi/jtag-lock-pick_tiny_2.cfg
Debug: 18 9 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_interface ftdi
Debug: 19 9 command.c:145 script_debug(): command - interface ocd_interface ftdi
Debug: 21 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_device_desc'...
Debug: 22 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_serial'...
Debug: 23 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_channel'...
Debug: 24 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_layout_init'...
Debug: 25 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_layout_signal'...
Debug: 26 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_set_signal'...
Debug: 27 9 command.c:369 register_command_handler(): registering
'ocd_ftdi_vid_pid'...
Info : 28 9 transport.c:118 allow_transports(): only one transport option;
autoselect 'jtag'
Debug: 29 10 command.c:369 register_command_handler(): registering
'ocd_jtag_flush_queue_sleep'...
Debug: 30 10 command.c:369 register_command_handler(): registering
'ocd_jtag_rclk'...
Debug: 31 10 command.c:369 register_command_handler(): registering
'ocd_jtag_ntrst_delay'...
Debug: 32 10 command.c:369 register_command_handler(): registering
'ocd_jtag_ntrst_assert_width'...
Debug: 33 10 command.c:369 register_command_handler(): registering
'ocd_scan_chain'...
Debug: 34 10 command.c:369 register_command_handler(): registering
'ocd_jtag_reset'...
Debug: 35 10 command.c:369 register_command_handler(): registering
'ocd_runtest'...
Debug: 36 10 command.c:369 register_command_handler(): registering
'ocd_irscan'...
Debug: 37 10 command.c:369 register_command_handler(): registering
'ocd_verify_ircapture'...
Debug: 38 10 command.c:369 register_command_handler(): registering
'ocd_verify_jtag'...
Debug: 39 10 command.c:369 register_command_handler(): registering
'ocd_tms_sequence'...
Debug: 40 12 command.c:369 register_command_handler(): registering
'ocd_wait_srst_deassert'...
Debug: 41 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 42 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 43 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 44 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 45 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 46 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 47 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 48 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 49 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 12 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 13 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 13 command.c:369 register_command_handler(): registering 'ocd_svf'...
Debug: 55 13 command.c:369 register_command_handler(): registering 'ocd_xsvf'...
Debug: 56 13 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_ftdi_device_desc JTAG-lock-pick Tiny 2
Debug: 57 13 command.c:145 script_debug(): command - ftdi_device_desc
ocd_ftdi_device_desc JTAG-lock-pick Tiny 2
Debug: 59 13 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_ftdi_vid_pid 0x0403 0x8220
Debug: 60 13 command.c:145 script_debug(): command - ftdi_vid_pid
ocd_ftdi_vid_pid 0x0403 0x8220
Debug: 62 14 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_ftdi_layout_init 0x8c28 0xff3b
Debug: 63 14 command.c:145 script_debug(): command - ftdi_layout_init
ocd_ftdi_layout_init 0x8c28 0xff3b
Debug: 65 14 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
Debug: 66 14 command.c:145 script_debug(): command - ftdi_layout_signal
ocd_ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
Debug: 68 14 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
Debug: 69 14 command.c:145 script_debug(): command - ftdi_layout_signal
ocd_ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
Debug: 71 14 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_ftdi_layout_signal LED -ndata 0x8000
Debug: 72 14 command.c:145 script_debug(): command - ftdi_layout_signal
ocd_ftdi_layout_signal LED -ndata 0x8000
Debug: 74 14 configuration.c:86 find_file(): found Flashing/Board/Board.cfg
Debug: 75 14 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_echo ### Flashing/Board/Board.cfg
Debug: 76 14 command.c:145 script_debug(): command - echo ocd_echo ###
Flashing/Board/Board.cfg
User : 78 15 command.c:766 jim_echo(): ### Flashing/Board/Board.cfg
Debug: 79 15 configuration.c:86 find_file(): found
/usr/local/share/openocd/scripts/target/lpc4337.cfg
Debug: 80 15 configuration.c:86 find_file(): found
/usr/local/share/openocd/scripts/target/lpc43xx.cfg
Debug: 81 15 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_adapter_khz 500
Debug: 82 15 command.c:145 script_debug(): command - adapter_khz
ocd_adapter_khz 500
Debug: 84 15 core.c:1646 jtag_config_khz(): handle jtag khz
Debug: 85 15 core.c:1613 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 86 15 core.c:1613 adapter_khz_to_speed(): convert khz to interface
specific speed value
User : 87 15 command.c:549 command_print(): adapter speed: 500 kHz
Debug: 88 16 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_jtag newtap lpc4337 m4 -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id 0x4ba00477
Debug: 89 16 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap
lpc4337 m4 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4ba00477
Debug: 90 16 tcl.c:553 jim_newtap_cmd(): Creating New Tap, Chip: lpc4337, Tap:
m4, Dotted: lpc4337.m4, 8 params
Debug: 91 16 tcl.c:570 jim_newtap_cmd(): Processing option: -irlen
Debug: 92 16 tcl.c:570 jim_newtap_cmd(): Processing option: -ircapture
Debug: 93 16 tcl.c:570 jim_newtap_cmd(): Processing option: -irmask
Debug: 94 16 tcl.c:570 jim_newtap_cmd(): Processing option: -expected-id
Debug: 95 16 core.c:1321 jtag_tap_init(): Created Tap: lpc4337.m4 @ abs
position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 96 16 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_jtag newtap lpc4337 m0 -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id 0x0ba01477
Debug: 97 16 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap
lpc4337 m0 -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x0ba01477
Debug: 98 16 tcl.c:553 jim_newtap_cmd(): Creating New Tap, Chip: lpc4337, Tap:
m0, Dotted: lpc4337.m0, 8 params
Debug: 99 16 tcl.c:570 jim_newtap_cmd(): Processing option: -irlen
Debug: 100 16 tcl.c:570 jim_newtap_cmd(): Processing option: -ircapture
Debug: 101 16 tcl.c:570 jim_newtap_cmd(): Processing option: -irmask
Debug: 102 16 tcl.c:570 jim_newtap_cmd(): Processing option: -expected-id
Debug: 103 16 core.c:1321 jtag_tap_init(): Created Tap: lpc4337.m0 @ abs
position 1, irlen 4, capture: 0x1 mask: 0xf
Debug: 104 16 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target create lpc4337.m4 cortex_m -chain-position lpc4337.m4
Debug: 105 17 command.c:145 script_debug(): command - ocd_target ocd_target
create lpc4337.m4 cortex_m -chain-position lpc4337.m4
Debug: 106 17 target.c:1682 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 107 17 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 108 17 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 109 17 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 110 17 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 111 17 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 112 17 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 113 17 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 114 17 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 115 17 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 116 17 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 117 17 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 118 17 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 119 17 command.c:369 register_command_handler(): registering
'ocd_cortex_m'...
Debug: 120 17 command.c:369 register_command_handler(): registering
'ocd_cortex_m'...
Debug: 121 17 command.c:369 register_command_handler(): registering
'ocd_cortex_m'...
Debug: 122 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 123 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 124 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 125 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 126 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 127 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 128 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 129 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 130 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 131 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 132 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 133 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 134 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 135 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 136 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 137 18 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 138 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 139 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 140 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 141 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 142 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 143 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 144 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 145 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 146 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 147 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 148 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 149 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 150 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 151 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 152 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 153 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 154 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 155 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 156 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 157 19 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 158 20 command.c:369 register_command_handler(): registering
'ocd_lpc4337.m4'...
Debug: 159 20 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 configure -work-area-phys 0x10000000 -work-area-size 32768
Debug: 160 20 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 configure -work-area-phys 0x10000000 -work-area-size 32768
Debug: 161 20 target.c:1682 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 162 20 target.c:1682 target_free_all_working_areas_restore(): freeing
all working areas
Debug: 163 20 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 configure -event reset-init
# echo "$_CHIPNAME.m4 reset-init"
Debug: 164 20 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 configure -event reset-init
# echo "$_CHIPNAME.m4 reset-init"
Debug: 165 20 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_cortex_m reset_config vectreset
Debug: 166 20 command.c:145 script_debug(): command - ocd_cortex_m ocd_cortex_m
reset_config vectreset
User : 168 20 command.c:549 command_print(): cortex_m reset_config vectreset
Debug: 169 20 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash bank flash_a lpc2000 0x1A000000 0x80000 0 0 lpc4337.m4 lpc4300
96000 calc_checksum
Debug: 170 20 command.c:145 script_debug(): command - ocd_flash ocd_flash bank
flash_a lpc2000 0x1A000000 0x80000 0 0 lpc4337.m4 lpc4300 96000 calc_checksum
Debug: 172 21 command.c:369 register_command_handler(): registering
'ocd_lpc2000'...
Debug: 173 21 tcl.c:807 handle_flash_bank_command(): 'lpc2000' driver usage
field missing
Debug: 174 21 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash bank flash_b lpc2000 0x1B000000 0x80000 0 0 lpc4337.m4 lpc4300
96000 calc_checksum
Debug: 175 21 command.c:145 script_debug(): command - ocd_flash ocd_flash bank
flash_b lpc2000 0x1B000000 0x80000 0 0 lpc4337.m4 lpc4300 96000 calc_checksum
Debug: 177 21 command.c:404 register_command(): command 'lpc2000' is already
registered in '<global>' context
Debug: 178 21 command.c:404 register_command(): command 'part_id' is already
registered in 'lpc2000' context
Debug: 179 21 tcl.c:807 handle_flash_bank_command(): 'lpc2000' driver usage
field missing
Debug: 180 21 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash bank flash lpc2000 0x1A000000 0x80000 0 0 lpc4337.m4 lpc4300
96000 calc_checksum
Debug: 181 21 command.c:145 script_debug(): command - ocd_flash ocd_flash bank
flash lpc2000 0x1A000000 0x80000 0 0 lpc4337.m4 lpc4300 96000 calc_checksum
Debug: 183 21 command.c:404 register_command(): command 'lpc2000' is already
registered in '<global>' context
Debug: 184 21 command.c:404 register_command(): command 'part_id' is already
registered in 'lpc2000' context
Debug: 185 21 tcl.c:807 handle_flash_bank_command(): 'lpc2000' driver usage
field missing
Debug: 186 21 configuration.c:86 find_file(): found Flashing/Board/uCode.cfg
Debug: 187 22 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_echo
Debug: 188 22 command.c:145 script_debug(): command - echo ocd_echo
User : 190 22 command.c:766 jim_echo():
Debug: 191 22 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash banks
Debug: 192 22 command.c:145 script_debug(): command - ocd_flash ocd_flash banks
User : 194 22 tcl.c:824 handle_flash_banks_command(): #0 : flash_a (lpc2000) at
0x1a000000, size 0x00080000, buswidth 0, chipwidth 0
User : 195 22 tcl.c:824 handle_flash_banks_command(): #1 : flash_b (lpc2000) at
0x1b000000, size 0x00080000, buswidth 0, chipwidth 0
User : 196 22 tcl.c:824 handle_flash_banks_command(): #2 : flash (lpc2000) at
0x1a000000, size 0x00080000, buswidth 0, chipwidth 0
Debug: 197 22 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_echo
Debug: 198 22 command.c:145 script_debug(): command - echo ocd_echo
User : 200 22 command.c:766 jim_echo():
Debug: 201 22 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_init
Debug: 202 22 command.c:145 script_debug(): command - init ocd_init
Debug: 204 22 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target init
Debug: 205 22 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 207 22 target.c:1245 handle_target_init_command(): Initializing
targets...
Debug: 208 23 command.c:369 register_command_handler(): registering
'ocd_target_request'...
Debug: 209 23 command.c:369 register_command_handler(): registering
'ocd_trace'...
Debug: 210 23 command.c:369 register_command_handler(): registering
'ocd_trace'...
Debug: 211 23 command.c:369 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 212 23 command.c:369 register_command_handler(): registering
'ocd_fast_load'...
Debug: 213 23 command.c:369 register_command_handler(): registering
'ocd_profile'...
Debug: 214 23 command.c:369 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 215 23 command.c:369 register_command_handler(): registering 'ocd_reg'...
Debug: 216 23 command.c:369 register_command_handler(): registering
'ocd_poll'...
Debug: 217 23 command.c:369 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 218 23 command.c:369 register_command_handler(): registering
'ocd_halt'...
Debug: 219 23 command.c:369 register_command_handler(): registering
'ocd_resume'...
Debug: 220 23 command.c:369 register_command_handler(): registering
'ocd_reset'...
Debug: 221 23 command.c:369 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 222 23 command.c:369 register_command_handler(): registering
'ocd_step'...
Debug: 223 23 command.c:369 register_command_handler(): registering 'ocd_mdw'...
Debug: 224 23 command.c:369 register_command_handler(): registering 'ocd_mdh'...
Debug: 225 23 command.c:369 register_command_handler(): registering 'ocd_mdb'...
Debug: 226 23 command.c:369 register_command_handler(): registering 'ocd_mww'...
Debug: 227 23 command.c:369 register_command_handler(): registering 'ocd_mwh'...
Debug: 228 23 command.c:369 register_command_handler(): registering 'ocd_mwb'...
Debug: 229 23 command.c:369 register_command_handler(): registering 'ocd_bp'...
Debug: 230 24 command.c:369 register_command_handler(): registering 'ocd_rbp'...
Debug: 231 24 command.c:369 register_command_handler(): registering 'ocd_wp'...
Debug: 232 24 command.c:369 register_command_handler(): registering 'ocd_rwp'...
Debug: 233 24 command.c:369 register_command_handler(): registering
'ocd_load_image'...
Debug: 234 24 command.c:369 register_command_handler(): registering
'ocd_dump_image'...
Debug: 235 24 command.c:369 register_command_handler(): registering
'ocd_verify_image'...
Debug: 236 24 command.c:369 register_command_handler(): registering
'ocd_test_image'...
Debug: 237 24 command.c:369 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 238 24 command.c:369 register_command_handler(): registering 'ocd_ps'...
Debug: 239 24 ftdi.c:592 ftdi_initialize(): ftdi interface using shortest path
jtag state transitions
Debug: 240 74 mpsse.c:363 mpsse_purge(): -
Debug: 241 76 mpsse.c:644 mpsse_loopback_config(): off
Debug: 242 76 core.c:1613 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 243 76 core.c:1616 adapter_khz_to_speed(): have interface set up
Debug: 244 76 mpsse.c:689 mpsse_set_frequency(): target 500000 Hz
Debug: 245 76 mpsse.c:681 mpsse_rtck_config(): off
Debug: 246 77 mpsse.c:670 mpsse_divide_by_5_config(): off
Debug: 247 77 mpsse.c:650 mpsse_set_divisor(): 59
Debug: 248 77 mpsse.c:713 mpsse_set_frequency(): actually 500000 Hz
Debug: 249 77 core.c:1613 adapter_khz_to_speed(): convert khz to interface
specific speed value
Debug: 250 77 core.c:1616 adapter_khz_to_speed(): have interface set up
Info : 251 77 core.c:1402 adapter_init(): clock speed 500 kHz
Debug: 252 77 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 253 77 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_transport init
Debug: 254 77 command.c:145 script_debug(): command - ocd_transport
ocd_transport init
Debug: 256 77 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 257 77 core.c:719 jtag_add_reset(): SRST line released
Debug: 258 77 core.c:743 jtag_add_reset(): TRST line released
Debug: 259 77 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 260 78 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_jtag arp_init
Debug: 261 78 command.c:145 script_debug(): command - ocd_jtag ocd_jtag arp_init
Debug: 262 78 core.c:1415 jtag_init_inner(): Init JTAG chain
Debug: 263 78 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 264 78 core.c:1048 jtag_examine_chain(): DR scan interrogation for
IDCODE/BYPASS
Debug: 265 78 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Error: 266 81 core.c:941 jtag_examine_chain_check(): JTAG scan chain
interrogation failed: all ones
Error: 267 82 core.c:942 jtag_examine_chain_check(): Check JTAG interface,
timings, target power, etc.
Error: 268 82 core.c:1460 jtag_init_inner(): Trying to use configured scan
chain anyway...
Debug: 269 82 core.c:1208 jtag_validate_ircapture(): IR capture validation scan
Error: 270 83 core.c:1259 jtag_validate_ircapture(): lpc4337.m4: IR capture
error; saw 0x00 not 0x01
Debug: 271 83 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Warn : 272 83 core.c:1483 jtag_init_inner(): Bypassing JTAG setup events due to
errors
Debug: 273 83 openocd.c:145 handle_init_command(): Examining targets...
Debug: 274 83 target.c:1361 target_call_event_callbacks(): target event 21
(examine-start)
Debug: 275 83 arm_adi_v5.c:806 ahbap_debugport_init():
Warn : 276 85 adi_v5_jtag.c:252 jtagdp_transaction_endcheck(): Invalid ACK 0x7
in JTAG-DP transaction
Debug: 277 85 openocd.c:147 handle_init_command(): target examination failed
Debug: 278 85 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_flash init
Debug: 279 86 command.c:145 script_debug(): command - ocd_flash ocd_flash init
User : 280 86 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 100ms
Debug: 281 86 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
Debug: 283 86 tcl.c:873 handle_flash_init_command(): Initializing flash
devices...
Debug: 284 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 285 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 286 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 287 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 288 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 289 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 290 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 291 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 292 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 293 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 294 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 295 86 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 296 87 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_mflash init
Debug: 297 87 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 299 87 mflash.c:1379 handle_mflash_init_command(): Initializing mflash
devices...
Debug: 300 87 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_nand init
Debug: 301 87 command.c:145 script_debug(): command - ocd_nand ocd_nand init
User : 302 87 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 300ms
Debug: 303 87 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
Debug: 305 87 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 306 88 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_pld init
Debug: 307 88 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 309 88 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Debug: 310 88 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_sleep 200
Debug: 311 88 command.c:145 script_debug(): command - sleep ocd_sleep 200
User : 313 89 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 700ms
Debug: 314 89 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
User : 315 97 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 1500ms
Debug: 316 97 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
User : 317 114 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 3100ms
Debug: 318 114 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
User : 319 146 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 6300ms
Debug: 320 146 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
User : 321 212 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 6300ms
Debug: 322 212 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
User : 323 276 target.c:2323 handle_target(): Polling target lpc4337.m4 failed,
GDB will be halted. Polling again in 6300ms
Debug: 324 277 target.c:1361 target_call_event_callbacks(): target event 0
(gdb-halt)
Debug: 325 288 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_reset halt
Debug: 326 288 command.c:145 script_debug(): command - reset ocd_reset halt
Debug: 328 288 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_target names
Debug: 329 288 command.c:145 script_debug(): command - ocd_target ocd_target
names
Debug: 330 289 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 invoke-event reset-start
Debug: 331 289 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 invoke-event reset-start
Debug: 332 289 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_jtag arp_init-reset
Debug: 333 289 command.c:145 script_debug(): command - ocd_jtag ocd_jtag
arp_init-reset
Debug: 334 289 core.c:1523 jtag_init_reset(): Initializing with hard TRST+SRST
reset
Debug: 335 289 core.c:732 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 336 289 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 337 290 core.c:1415 jtag_init_inner(): Init JTAG chain
Debug: 338 290 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 339 290 core.c:1048 jtag_examine_chain(): DR scan interrogation for
IDCODE/BYPASS
Debug: 340 290 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 341 292 core.c:1069 jtag_examine_chain(): TAP lpc4337.m4 does not have
IDCODE
Warn : 342 292 core.c:951 jtag_examine_chain_display(): JTAG tap: lpc4337.m4
UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
Error: 343 292 core.c:951 jtag_examine_chain_display(): JTAG tap: lpc4337.m4
expected 1 of 1: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : 344 292 core.c:1069 jtag_examine_chain(): TAP lpc4337.m0 does not have
IDCODE
Warn : 345 292 core.c:951 jtag_examine_chain_display(): JTAG tap: lpc4337.m0
UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
Error: 346 292 core.c:951 jtag_examine_chain_display(): JTAG tap: lpc4337.m0
expected 1 of 1: 0x0ba01477 (mfg: 0x23b, part: 0xba01, ver: 0x0)
Warn : 347 292 core.c:988 jtag_examine_chain_end(): Unexpected idcode after end
of chain: 2 0x00000000
Warn : 348 292 core.c:988 jtag_examine_chain_end(): Unexpected idcode after end
of chain: 34 0xfffffffc
Error: 349 292 core.c:1156 jtag_examine_chain(): double-check your JTAG setup
(interface, speed, missing TAPs, ...)
Error: 350 292 core.c:1460 jtag_init_inner(): Trying to use configured scan
chain anyway...
Debug: 351 292 core.c:1208 jtag_validate_ircapture(): IR capture validation scan
Error: 352 293 core.c:1259 jtag_validate_ircapture(): lpc4337.m4: IR capture
error; saw 0x0f not 0x01
Debug: 353 293 core.c:323 jtag_call_event_callbacks(): jtag event: TAP reset
Warn : 354 293 core.c:1483 jtag_init_inner(): Bypassing JTAG setup events due
to errors
Debug: 355 293 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 cget -chain-position
Debug: 356 293 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 cget -chain-position
Debug: 357 294 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_jtag tapisenabled lpc4337.m4
Debug: 358 294 command.c:145 script_debug(): command - ocd_jtag ocd_jtag
tapisenabled lpc4337.m4
Debug: 359 294 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 invoke-event examine-start
Debug: 360 294 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 invoke-event examine-start
Debug: 361 294 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 arp_examine
Debug: 362 294 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 arp_examine
Debug: 363 294 arm_adi_v5.c:806 ahbap_debugport_init():
Warn : 364 296 adi_v5_jtag.c:252 jtagdp_transaction_endcheck(): Invalid ACK 0
in JTAG-DP transaction
Debug: 365 297 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 invoke-event reset-assert-pre
Debug: 366 297 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 invoke-event reset-assert-pre
Debug: 367 297 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 cget -chain-position
Debug: 368 297 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 cget -chain-position
Debug: 369 297 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_jtag tapisenabled lpc4337.m4
Debug: 370 297 command.c:145 script_debug(): command - ocd_jtag ocd_jtag
tapisenabled lpc4337.m4
Debug: 371 297 command.c:145 script_debug(): command - ocd_command ocd_command
type ocd_lpc4337.m4 arp_reset assert 1
Debug: 372 297 command.c:145 script_debug(): command - ocd_lpc4337.m4
ocd_lpc4337.m4 arp_reset assert 1
Error: 373 297 target.c:4680 jim_target_reset(): Target not examined yet
User : 374 297 command.c:549 command_print():
Debug: 375 297 command.c:631 run_command(): Command failed with error code -4
User : 376 298 command.c:669 command_run_line(): Runtime Error:
Flashing/Board/uCode.cfg:22:
in procedure 'flashNow'
in procedure 'reset' called at file "Flashing/Board/uCode.cfg", line 22
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel