On Thu, May 10, 2012 at 5:48 AM, Andreas Fritiofson
<[email protected]> wrote:
>> Can you try the attached luminary.cfg to see if you can at
>> least read the idcode?
>
> In any case, it doesn't explain the hanging you mentioned. Did you
> manage to get a debug log when it hanged?

If I use the latest luminar.cfg, the first run generated the
segfault, the 2nd run will hang, same hang for later run

If I use the previous luminar.cfg, the first run generated the
error, the 2nd run will hang, same hang for later run.

After the hang, I can run the git version of openocd to
get it back to the normal state.

> There are a lot of variables here: OS, libusb version, adapter,
> target. The following configuration seems to be very stable for me:
>
> Ubuntu 10.04
> Libusb 1.0.6 (in Ubuntu repo)

That is very old libusb and buggy. You may want to
update to 1.0.9.

> Jtagkey-Tiny, Olimex ARM-USB-OCD and Olimex ARM-USB-OCD-H
> STM32F100 and STM32F103
>
> If you or anyone can test configurations with only one or two
> differences at a time it would be very helpful to locate the
> problem(s).

I will test under Linux as well (Ubuntu 12.04).

++++++++
The debug log for the hang (using the original luminary.cfg).

First run will generate errors.

mymacmini:lm3s1968 xiaofanc$ ~/bin/bin/openocd -f
~/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse_icdi.cfg
Open On-Chip Debugger 0.6.0-dev-00448-gac053a2 (2012-05-09-19:01)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
Info : clock speed 500 kHz
Info : JTAG tap: lm3s1968.cpu tap/device found: 0xffffffff (mfg:
0x7ff, part: 0xffff, ver: 0xf)
Warn : JTAG tap: lm3s1968.cpu       UNEXPECTED: 0xffffffff (mfg:
0x7ff, part: 0xffff, ver: 0xf)
Error: JTAG tap: lm3s1968.cpu  expected 1 of 1: 0x0ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x0)
Warn : Unexpected idcode after end of chain: 608 0x7fffffff
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Error: lm3s1968.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : Invalid ACK 0x7 in JTAG-DP transaction
Polling target failed, GDB will be halted. Polling again in 100ms
Polling target failed, GDB will be halted. Polling again in 300ms
Polling target failed, GDB will be halted. Polling again in 700ms
Polling target failed, GDB will be halted. Polling again in 1500ms
Polling target failed, GDB will be halted. Polling again in 3100ms
^C

2nd run will hang.

mymacmini:lm3s1968 xiaofanc$ ~/bin/bin/openocd -d3 -f
~/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse_icdi.cfg
Open On-Chip Debugger 0.6.0-dev-00448-gac053a2 (2012-05-09-19:01)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 11 2 command.c:549 command_print(): debug_level: 3
Debug: 12 2 configuration.c:45 add_script_search_dir(): adding
/Users/xiaofanc/.openocd
Debug: 13 2 configuration.c:45 add_script_search_dir(): adding
/Users/xiaofanc/bin/share/openocd/site
Debug: 14 2 configuration.c:45 add_script_search_dir(): adding
/Users/xiaofanc/bin/share/openocd/scripts
Debug: 15 2 configuration.c:86 find_file(): found
/Users/xiaofanc/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse_icdi.cfg
Debug: 16 2 configuration.c:86 find_file(): found
/Users/xiaofanc/bin/share/openocd/scripts/interface/ftdi/luminary.cfg
Debug: 17 2 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_interface ftdi
Debug: 18 2 command.c:147 script_debug(): command - interface ocd_interface ftdi
Debug: 20 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_device_desc'...
Debug: 21 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_serial'...
Debug: 22 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_channel'...
Debug: 23 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_layout_init'...
Debug: 24 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_layout_signal'...
Debug: 25 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_set_signal'...
Debug: 26 3 command.c:369 register_command_handler(): registering
'ocd_ftdi_vid_pid'...
Info : 27 3 transport.c:118 allow_transports(): only one transport
option; autoselect 'jtag'
Debug: 28 3 command.c:369 register_command_handler(): registering
'ocd_jtag_flush_queue_sleep'...
Debug: 29 3 command.c:369 register_command_handler(): registering
'ocd_jtag_rclk'...
Debug: 30 3 command.c:369 register_command_handler(): registering
'ocd_jtag_ntrst_delay'...
Debug: 31 3 command.c:369 register_command_handler(): registering
'ocd_jtag_ntrst_assert_width'...
Debug: 32 3 command.c:369 register_command_handler(): registering
'ocd_scan_chain'...
Debug: 33 3 command.c:369 register_command_handler(): registering
'ocd_jtag_reset'...
Debug: 34 3 command.c:369 register_command_handler(): registering
'ocd_runtest'...
Debug: 35 3 command.c:369 register_command_handler(): registering
'ocd_irscan'...
Debug: 36 3 command.c:369 register_command_handler(): registering
'ocd_verify_ircapture'...
Debug: 37 3 command.c:369 register_command_handler(): registering
'ocd_verify_jtag'...
Debug: 38 3 command.c:369 register_command_handler(): registering
'ocd_tms_sequence'...
Debug: 39 3 command.c:369 register_command_handler(): registering
'ocd_wait_srst_deassert'...
Debug: 40 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 41 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 42 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 43 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 44 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 45 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 46 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 47 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 48 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 49 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 3 command.c:369 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 3 command.c:369 register_command_handler(): registering 'ocd_svf'...
Debug: 54 3 command.c:369 register_command_handler(): registering 'ocd_xsvf'...
Debug: 55 3 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_ftdi_device_desc Stellaris Evaluation Board
Debug: 56 3 command.c:147 script_debug(): command - ftdi_device_desc
ocd_ftdi_device_desc Stellaris Evaluation Board
Debug: 58 3 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_ftdi_vid_pid 0x0403 0xbcd9
Debug: 59 3 command.c:147 script_debug(): command - ftdi_vid_pid
ocd_ftdi_vid_pid 0x0403 0xbcd9
Debug: 61 3 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_ftdi_layout_init 0x0088 0x00cb
Debug: 62 3 command.c:147 script_debug(): command - ftdi_layout_init
ocd_ftdi_layout_init 0x0088 0x00cb
Debug: 64 3 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020
Debug: 65 3 command.c:147 script_debug(): command - ftdi_layout_signal
ocd_ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020
Debug: 67 4 configuration.c:86 find_file(): found
/Users/xiaofanc/bin/share/openocd/scripts/target/stellaris.cfg
Debug: 68 4 configuration.c:86 find_file(): found
/Users/xiaofanc/bin/share/openocd/scripts/target/swj-dp.tcl
Debug: 69 4 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_transport select
Debug: 70 4 command.c:147 script_debug(): command - ocd_transport
ocd_transport select
Debug: 71 4 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_jtag newtap lm3s1968 cpu -irlen 4 -irmask 0xf
-expected-id 0x0ba00477 -ignore-version
Debug: 72 4 command.c:147 script_debug(): command - ocd_jtag ocd_jtag
newtap lm3s1968 cpu -irlen 4 -irmask 0xf -expected-id 0x0ba00477
-ignore-version
Debug: 73 4 tcl.c:553 jim_newtap_cmd(): Creating New Tap, Chip:
lm3s1968, Tap: cpu, Dotted: lm3s1968.cpu, 7 params
Debug: 74 4 tcl.c:570 jim_newtap_cmd(): Processing option: -irlen
Debug: 75 4 tcl.c:570 jim_newtap_cmd(): Processing option: -irmask
Debug: 76 4 tcl.c:570 jim_newtap_cmd(): Processing option: -expected-id
Debug: 77 4 tcl.c:570 jim_newtap_cmd(): Processing option: -ignore-version
Debug: 78 4 core.c:1281 jtag_tap_init(): Created Tap: lm3s1968.cpu @
abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 79 4 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_target create lm3s1968.cpu cortex_m3
-chain-position lm3s1968.cpu
Debug: 80 4 command.c:147 script_debug(): command - ocd_target
ocd_target create lm3s1968.cpu cortex_m3 -chain-position lm3s1968.cpu
Debug: 81 4 target.c:1611 target_free_all_working_areas_restore():
freeing all working areas
Debug: 82 4 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 83 4 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 84 4 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 85 4 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 86 4 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 87 4 command.c:369 register_command_handler(): registering 'ocd_arm'...
Debug: 88 5 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 89 5 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 90 5 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 91 5 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 92 5 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 93 5 command.c:369 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 94 5 command.c:369 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 95 5 command.c:369 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 96 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 97 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 98 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 99 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 100 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 101 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 102 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 103 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 104 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 105 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 106 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 107 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 108 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 109 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 110 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 111 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 112 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 113 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 114 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 115 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 116 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 117 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 118 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 119 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 120 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 121 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 122 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 123 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 124 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 125 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 126 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 127 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 128 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 129 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 130 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 131 5 command.c:369 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 132 5 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_lm3s1968.cpu configure -work-area-phys 0x20000000
-work-area-size 0x2000
Debug: 133 5 command.c:147 script_debug(): command - ocd_lm3s1968.cpu
ocd_lm3s1968.cpu configure -work-area-phys 0x20000000 -work-area-size
0x2000
Debug: 134 5 target.c:1611 target_free_all_working_areas_restore():
freeing all working areas
Debug: 135 5 target.c:1611 target_free_all_working_areas_restore():
freeing all working areas
Debug: 136 5 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_adapter_khz 500
Debug: 137 5 command.c:147 script_debug(): command - adapter_khz
ocd_adapter_khz 500
Debug: 139 5 core.c:1570 jtag_config_khz(): handle jtag khz
Debug: 140 5 core.c:1537 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 141 5 core.c:1537 adapter_khz_to_speed(): convert khz to
interface specific speed value
User : 142 5 command.c:549 command_print(): 500 kHz
Debug: 143 6 configuration.c:86 find_file(): found
/Users/xiaofanc/bin/share/openocd/scripts/mem_helper.tcl
Debug: 144 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_add_usage_text mrw address
Debug: 145 6 command.c:147 script_debug(): command - add_usage_text
ocd_add_usage_text mrw address
Debug: 147 6 command.c:1100 help_add_command(): added 'mrw' help text
Debug: 148 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_add_help_text mrw Returns value of word in
memory.
Debug: 149 6 command.c:147 script_debug(): command - add_help_text
ocd_add_help_text mrw Returns value of word in memory.
Debug: 151 6 command.c:1113 help_add_command(): added 'mrw' help text
Debug: 152 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_add_usage_text mmw address setbits clearbits
Debug: 153 6 command.c:147 script_debug(): command - add_usage_text
ocd_add_usage_text mmw address setbits clearbits
Debug: 155 6 command.c:1100 help_add_command(): added 'mmw' help text
Debug: 156 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_add_help_text mmw Modify word in memory. new_val
= (old_val & ~clearbits) | setbits;
Debug: 157 6 command.c:147 script_debug(): command - add_help_text
ocd_add_help_text mmw Modify word in memory. new_val = (old_val &
~clearbits) | setbits;
Debug: 159 6 command.c:1113 help_add_command(): added 'mmw' help text
Debug: 160 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_lm3s1968.cpu configure -event reset-start
        adapter_khz 500

        #
        # When nRST is asserted on most Stellaris devices, it clears some of
        # the debug state.  The ARMv7M and Cortex-M3 TRMs say that's wrong;
        # and OpenOCD depends on those TRMs.  So we won't use SRST on those
        # chips.  (Only power-on reset should affect debug state, beyond a
        # few specified bits; not the chip's nRST input, wired to SRST.)
        #
        # REVISIT current errata specs don't seem to cover this issue.
        # Do we have more details than this email?
        #   https://lists.berlios.de/pipermail
        #       /openocd-development/2008-August/003065.html
        #

        global _DEVICECLASS

        if {$_DEVICECLASS != 0xff} {
           set device_class $_DEVICECLASS
        } else {
           set device_class [expr (([mrw 0x400fe000] >> 16) & 0xff)]
        }

        if {$device_class == 0 || $device_class == 1 ||
                $device_class == 3 || $device_class == 5} {
                # Sandstorm, Fury, DustDevil and Blizzard are able to use NVIC 
SYSRESETREQ
                cortex_m3 reset_config sysresetreq
        } else {
                # Tempest and Firestorm default to using NVIC VECTRESET
                # peripherals will need reseting manually, see proc 
reset_peripherals
                cortex_m3 reset_config vectreset

                # reset peripherals, based on code in
                # http://www.ti.com/lit/er/spmz573a/spmz573a.pdf
                reset_peripherals $device_class
        }

Debug: 161 6 command.c:147 script_debug(): command - ocd_lm3s1968.cpu
ocd_lm3s1968.cpu configure -event reset-start
        adapter_khz 500

        #
        # When nRST is asserted on most Stellaris devices, it clears some of
        # the debug state.  The ARMv7M and Cortex-M3 TRMs say that's wrong;
        # and OpenOCD depends on those TRMs.  So we won't use SRST on those
        # chips.  (Only power-on reset should affect debug state, beyond a
        # few specified bits; not the chip's nRST input, wired to SRST.)
        #
        # REVISIT current errata specs don't seem to cover this issue.
        # Do we have more details than this email?
        #   https://lists.berlios.de/pipermail
        #       /openocd-development/2008-August/003065.html
        #

        global _DEVICECLASS

        if {$_DEVICECLASS != 0xff} {
           set device_class $_DEVICECLASS
        } else {
           set device_class [expr (([mrw 0x400fe000] >> 16) & 0xff)]
        }

        if {$device_class == 0 || $device_class == 1 ||
                $device_class == 3 || $device_class == 5} {
                # Sandstorm, Fury, DustDevil and Blizzard are able to use NVIC 
SYSRESETREQ
                cortex_m3 reset_config sysresetreq
        } else {
                # Tempest and Firestorm default to using NVIC VECTRESET
                # peripherals will need reseting manually, see proc 
reset_peripherals
                cortex_m3 reset_config vectreset

                # reset peripherals, based on code in
                # http://www.ti.com/lit/er/spmz573a/spmz573a.pdf
                reset_peripherals $device_class
        }

Debug: 162 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_flash bank lm3s1968.flash stellaris 0 0 0 0
lm3s1968.cpu
Debug: 163 6 command.c:147 script_debug(): command - ocd_flash
ocd_flash bank lm3s1968.flash stellaris 0 0 0 0 lm3s1968.cpu
Debug: 165 6 command.c:369 register_command_handler(): registering
'ocd_stellaris'...
Debug: 166 6 command.c:369 register_command_handler(): registering
'ocd_stellaris'...
Debug: 167 6 tcl.c:780 handle_flash_bank_command(): 'stellaris' driver
usage field missing
Debug: 168 7 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_init
Debug: 169 7 command.c:147 script_debug(): command - init ocd_init
Debug: 171 7 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_target init
Debug: 172 7 command.c:147 script_debug(): command - ocd_target ocd_target init
Debug: 174 7 target.c:1174 handle_target_init_command(): Initializing targets...
Debug: 175 7 command.c:369 register_command_handler(): registering
'ocd_target_request'...
Debug: 176 7 command.c:369 register_command_handler(): registering
'ocd_trace'...
Debug: 177 7 command.c:369 register_command_handler(): registering
'ocd_trace'...
Debug: 178 7 command.c:369 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 179 7 command.c:369 register_command_handler(): registering
'ocd_fast_load'...
Debug: 180 7 command.c:369 register_command_handler(): registering
'ocd_profile'...
Debug: 181 7 command.c:369 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 182 7 command.c:369 register_command_handler(): registering 'ocd_reg'...
Debug: 183 7 command.c:369 register_command_handler(): registering 'ocd_poll'...
Debug: 184 7 command.c:369 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 185 7 command.c:369 register_command_handler(): registering 'ocd_halt'...
Debug: 186 7 command.c:369 register_command_handler(): registering
'ocd_resume'...
Debug: 187 7 command.c:369 register_command_handler(): registering
'ocd_reset'...
Debug: 188 7 command.c:369 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 189 7 command.c:369 register_command_handler(): registering 'ocd_step'...
Debug: 190 7 command.c:369 register_command_handler(): registering 'ocd_mdw'...
Debug: 191 7 command.c:369 register_command_handler(): registering 'ocd_mdh'...
Debug: 192 7 command.c:369 register_command_handler(): registering 'ocd_mdb'...
Debug: 193 7 command.c:369 register_command_handler(): registering 'ocd_mww'...
Debug: 194 7 command.c:369 register_command_handler(): registering 'ocd_mwh'...
Debug: 195 7 command.c:369 register_command_handler(): registering 'ocd_mwb'...
Debug: 196 7 command.c:369 register_command_handler(): registering 'ocd_bp'...
Debug: 197 7 command.c:369 register_command_handler(): registering 'ocd_rbp'...
Debug: 198 7 command.c:369 register_command_handler(): registering 'ocd_wp'...
Debug: 199 7 command.c:369 register_command_handler(): registering 'ocd_rwp'...
Debug: 200 7 command.c:369 register_command_handler(): registering
'ocd_load_image'...
Debug: 201 7 command.c:369 register_command_handler(): registering
'ocd_dump_image'...
Debug: 202 7 command.c:369 register_command_handler(): registering
'ocd_verify_image'...
Debug: 203 7 command.c:369 register_command_handler(): registering
'ocd_test_image'...
Debug: 204 7 command.c:369 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 205 7 command.c:369 register_command_handler(): registering 'ocd_ps'...
Debug: 206 7 ftdi.c:615 ftdi_initialize(): ftdi interface using
shortest path jtag state transitions
Debug: 207 551 mpsse.c:309 mpsse_open(): current latency timer: 255
Debug: 208 551 mpsse.c:358 mpsse_purge(): -
Debug: 209 552 mpsse.c:623 mpsse_loopback_config(): off
Debug: 210 552 mpsse.c:767 mpsse_flush(): write 7, read 0
Debug: 211 552 mpsse.c:750 write_cb(): transferred 7 of 7
Debug: 213 552 core.c:1537 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 214 552 core.c:1540 adapter_khz_to_speed(): have interface set up
Debug: 215 552 mpsse.c:664 mpsse_set_frequency(): target 500000 Hz
Debug: 216 552 mpsse.c:629 mpsse_set_divisor(): 11
Debug: 217 552 mpsse.c:693 mpsse_set_frequency(): actually 500000 Hz
Debug: 218 552 core.c:1537 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 219 552 core.c:1540 adapter_khz_to_speed(): have interface set up
Info : 220 552 core.c:1358 adapter_init(): clock speed 500 kHz
Debug: 221 552 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 222 552 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 223 552 command.c:147 script_debug(): command - ocd_transport
ocd_transport init
Debug: 225 552 transport.c:246 handle_transport_init(): handle_transport_init
Debug: 226 552 mpsse.c:767 mpsse_flush(): write 9, read 0
Debug: 227 553 mpsse.c:750 write_cb(): transferred 9 of 9
Debug: 228 553 core.c:678 jtag_add_reset(): SRST line released
Debug: 229 553 core.c:702 jtag_add_reset(): TRST line released
Debug: 230 553 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 231 553 mpsse.c:767 mpsse_flush(): write 0, read 0
Debug: 232 553 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init
Debug: 233 553 command.c:147 script_debug(): command - ocd_jtag
ocd_jtag arp_init
Debug: 234 553 core.c:1371 jtag_init_inner(): Init JTAG chain
Debug: 235 553 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 236 553 mpsse.c:767 mpsse_flush(): write 3, read 0
Debug: 237 553 mpsse.c:750 write_cb(): transferred 3 of 3
Debug: 238 553 core.c:1007 jtag_examine_chain(): DR scan interrogation
for IDCODE/BYPASS
Debug: 239 553 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 240 553 mpsse.c:767 mpsse_flush(): write 97+1, read 81
Debug: 241 553 mpsse.c:750 write_cb(): transferred 98 of 98
Debug: 242 555 mpsse.c:736 read_cb(): raw chunk 85, transferred 81 of 81
Info : 243 555 core.c:910 jtag_examine_chain_display(): JTAG tap:
lm3s1968.cpu tap/device found: 0xffffffff (mfg: 0x7ff, part: 0xffff,
ver: 0xf)
Warn : 244 555 core.c:910 jtag_examine_chain_display(): JTAG tap:
lm3s1968.cpu       UNEXPECTED: 0xffffffff (mfg: 0x7ff, part: 0xffff,
ver: 0xf)
Error: 245 555 core.c:910 jtag_examine_chain_display(): JTAG tap:
lm3s1968.cpu  expected 1 of 1: 0x0ba00477 (mfg: 0x23b, part: 0xba00,
ver: 0x0)
Warn : 246 555 core.c:947 jtag_examine_chain_end(): Unexpected idcode
after end of chain: 608 0x7fffffff
Error: 247 555 core.c:1115 jtag_examine_chain(): double-check your
JTAG setup (interface, speed, missing TAPs, ...)
Error: 248 555 core.c:1416 jtag_init_inner(): Trying to use configured
scan chain anyway...
Debug: 249 555 core.c:1167 jtag_validate_ircapture(): IR capture validation scan
Debug: 250 555 mpsse.c:767 mpsse_flush(): write 15+1, read 2
Debug: 251 555 mpsse.c:750 write_cb(): transferred 16 of 16
Debug: 252 555 mpsse.c:736 read_cb(): raw chunk 4, transferred 2 of 2
Error: 253 555 core.c:1220 jtag_validate_ircapture(): lm3s1968.cpu: IR
capture error; saw 0x0f not 0x01
Debug: 254 555 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 255 555 mpsse.c:767 mpsse_flush(): write 3, read 0
Debug: 256 555 mpsse.c:750 write_cb(): transferred 3 of 3
Warn : 257 555 core.c:1439 jtag_init_inner(): Bypassing JTAG setup
events due to errors
Debug: 258 555 openocd.c:145 handle_init_command(): Examining targets...
Debug: 259 555 arm_adi_v5.c:1099 ahbap_debugport_init():
Debug: 260 555 mpsse.c:767 mpsse_flush(): write 207+1, read 12
Debug: 261 556 mpsse.c:750 write_cb(): transferred 208 of 208
Debug: 262 556 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Warn : 263 556 adi_v5_jtag.c:249 jtagdp_transaction_endcheck():
Invalid ACK 0x7 in JTAG-DP transaction
Debug: 264 556 openocd.c:147 handle_init_command(): target examination failed
Debug: 265 556 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_flash init
Debug: 266 556 command.c:147 script_debug(): command - ocd_flash ocd_flash init
User : 267 556 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 100ms
Debug: 268 556 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 270 557 tcl.c:846 handle_flash_init_command(): Initializing
flash devices...
Debug: 271 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 272 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 273 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 274 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 275 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 276 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 277 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 278 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 279 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 280 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 281 557 command.c:369 register_command_handler(): registering
'ocd_flash'...
Debug: 282 557 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_mflash init
Debug: 283 557 command.c:147 script_debug(): command - ocd_mflash
ocd_mflash init
Debug: 285 557 mflash.c:1378 handle_mflash_init_command():
Initializing mflash devices...
Debug: 286 557 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_nand init
Debug: 287 557 command.c:147 script_debug(): command - ocd_nand ocd_nand init
User : 288 557 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 300ms
Debug: 289 557 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 291 557 tcl.c:497 handle_nand_init_command(): Initializing NAND
devices...
Debug: 292 557 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_pld init
Debug: 293 557 command.c:147 script_debug(): command - ocd_pld ocd_pld init
Debug: 295 557 pld.c:207 handle_pld_init_command(): Initializing PLDs...
User : 296 859 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 700ms
Debug: 297 859 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 298 1667 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 1500ms
Debug: 299 1667 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 300 3278 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 3100ms
Debug: 301 3278 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 302 6507 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 6300ms
Debug: 303 6507 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 304 12965 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 6300ms
Debug: 305 12965 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 306 19425 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 6300ms
Debug: 307 19425 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 308 25883 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 6300ms
Debug: 309 25883 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 310 32339 target.c:2232 handle_target(): Polling target failed,
GDB will be halted. Polling again in 6300ms
Debug: 311 32339 target.c:1290 target_call_event_callbacks(): target
event 2 (gdb-halt)
^C


-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to