On Thu, May 10, 2012 at 10:21 PM, Xiaofan Chen <[email protected]> wrote:
> On Thu, May 10, 2012 at 7:18 PM, Andreas Fritiofson
> <[email protected]> wrote:
>> I wish I could find a configuration that didn't work.
>>
>> Regarding the segfault, I think there's a bug somewhere in the
>> handling of signals that are requested to be tri-stated even though
>> they are specified as push-pull only. You can try to make sure that
>> reset_config includes srst_push_pull, because srst isn't open drain in
>> your eval board. I'll investigate more later.
>
> Great! This seems to work fine, tested under Ubuntu 12.04. Thanks
> for the insight.
>
> In terms of flash write performance, mpsse version is only about
> 10%  faster than the git version. But the mpsse version seems
>  to dump much faster.
>
> Also I can push adapter_khz to 6000 in the mpsse version (even
> though it does not help the flash write speed) but the vanilla
> git version is only up to 3000.
>

Still I could not get it to work under Mac OS X. First
run will segfaul and subsequent run will hang.

mymacmini:lm3s1968 xiaofanc$ cat
~/bin/share/openocd/scripts/interface/ftdi/luminary.cfg
#
# Luminary Micro Stellaris Evaluation Kits
#
# http://www.luminarymicro.com/products/evaluation_kits.html
#
# There are a number of evaluation kits for Stellaris Cortex-M3 chips.
# Currently they all bundle ftdi based debug support.  When that is
# used (instead of an external adapter), use this config file in one
# of these two modes:
#
# - Eval board debug ... debug of the Stellaris chip via port A.
#
# - Other board debug ... same thing, but the board acts as a debug
#   adapter for another board (using a standard ARM JTAG connector).
#   The Stellaris chip stays in reset.
#
# Those support both JTAG and SWD.  SWD is an ARM-only two-wire debug
# protocol; in 2009, OpenOCD does not support SWD.
#
# Port B of the ftdi chip is normally used as a serial link to the
# Stellaris chip.  On most boards (but not older LM3S811 eval boards),
# when SWD is used Port B may instead be used to read low-bandwidth
# "SWO trace" data, including so-called "printf style" output from
# firmware via the ITM module as well as profile data.
#

interface ftdi
ftdi_device_desc "Stellaris Evaluation Board"
ftdi_vid_pid 0x0403 0xbcd9

ftdi_layout_init 0x00a8 0x00eb
ftdi_layout_signal nSRST -data 0x0020
mymacmini:lm3s1968 xiaofanc$ cat
~/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse.cfg
#
# TI/Luminary Stellaris LM3S1968 Evaluation Kits
#
# http://www.luminarymicro.com/products/lm3s1968_evaluation_kits.html

# NOTE:  to use J-Link instead of the on-board interface,
# you may also need to reduce adapter_khz to be about 1200.
# source [find interface/jlink.cfg]

# include the FT2232 interface config for on-board JTAG interface
# NOTE:  using the on-board FT2232 JTAG/SWD/SWO interface is optional!
# so is using in JTAG mode, as done here.
source [find interface/ftdi/luminary.cfg]

# include the target config
set WORKAREASIZE 0x2000
set CHIPNAME lm3s1968
source [find target/stellaris.cfg]

reset_config srst_push_pull

mymacmini:lm3s1968 xiaofanc$ ~/bin/bin/openocd -d3 -f
~/bin/share/openocd/scripts/board/ek-lm3s1968_mpsse.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 1 command.c:549 command_print(): debug_level: 3
Debug: 12 1 configuration.c:45 add_script_search_dir(): adding
/Users/xiaofanc/.openocd
Debug: 13 1 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.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 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_device_desc'...
Debug: 21 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_serial'...
Debug: 22 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_channel'...
Debug: 23 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_layout_init'...
Debug: 24 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_layout_signal'...
Debug: 25 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_set_signal'...
Debug: 26 2 command.c:369 register_command_handler(): registering
'ocd_ftdi_vid_pid'...
Info : 27 2 transport.c:118 allow_transports(): only one transport
option; autoselect 'jtag'
Debug: 28 2 command.c:369 register_command_handler(): registering
'ocd_jtag_flush_queue_sleep'...
Debug: 29 2 command.c:369 register_command_handler(): registering
'ocd_jtag_rclk'...
Debug: 30 2 command.c:369 register_command_handler(): registering
'ocd_jtag_ntrst_delay'...
Debug: 31 2 command.c:369 register_command_handler(): registering
'ocd_jtag_ntrst_assert_width'...
Debug: 32 2 command.c:369 register_command_handler(): registering
'ocd_scan_chain'...
Debug: 33 2 command.c:369 register_command_handler(): registering
'ocd_jtag_reset'...
Debug: 34 2 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 0x00a8 0x00eb
Debug: 62 3 command.c:147 script_debug(): command - ftdi_layout_init
ocd_ftdi_layout_init 0x00a8 0x00eb
Debug: 64 3 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_ftdi_layout_signal nSRST -data 0x0020
Debug: 65 3 command.c:147 script_debug(): command - ftdi_layout_signal
ocd_ftdi_layout_signal nSRST -data 0x0020
Debug: 67 3 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 4 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 89 4 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 90 4 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 91 4 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 92 4 command.c:369 register_command_handler(): registering 'ocd_dap'...
Debug: 93 4 command.c:369 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 94 4 command.c:369 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 95 4 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 5 configuration.c:86 find_file(): found
/Users/xiaofanc/bin/share/openocd/scripts/mem_helper.tcl
Debug: 144 5 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_add_usage_text mrw address
Debug: 145 5 command.c:147 script_debug(): command - add_usage_text
ocd_add_usage_text mrw address
Debug: 147 5 command.c:1100 help_add_command(): added 'mrw' help text
Debug: 148 5 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_add_help_text mrw Returns value of word in
memory.
Debug: 149 5 command.c:147 script_debug(): command - add_help_text
ocd_add_help_text mrw Returns value of word in memory.
Debug: 151 5 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 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_reset_config srst_push_pull
Debug: 169 6 command.c:147 script_debug(): command - reset_config
ocd_reset_config srst_push_pull
User : 171 6 command.c:549 command_print(): none separate
Debug: 172 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_init
Debug: 173 6 command.c:147 script_debug(): command - init ocd_init
Debug: 175 6 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_target init
Debug: 176 6 command.c:147 script_debug(): command - ocd_target ocd_target init
Debug: 178 6 target.c:1174 handle_target_init_command(): Initializing targets...
Debug: 179 6 command.c:369 register_command_handler(): registering
'ocd_target_request'...
Debug: 180 6 command.c:369 register_command_handler(): registering
'ocd_trace'...
Debug: 181 6 command.c:369 register_command_handler(): registering
'ocd_trace'...
Debug: 182 6 command.c:369 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 183 6 command.c:369 register_command_handler(): registering
'ocd_fast_load'...
Debug: 184 6 command.c:369 register_command_handler(): registering
'ocd_profile'...
Debug: 185 6 command.c:369 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 186 7 command.c:369 register_command_handler(): registering 'ocd_reg'...
Debug: 187 7 command.c:369 register_command_handler(): registering 'ocd_poll'...
Debug: 188 7 command.c:369 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 189 7 command.c:369 register_command_handler(): registering 'ocd_halt'...
Debug: 190 7 command.c:369 register_command_handler(): registering
'ocd_resume'...
Debug: 191 7 command.c:369 register_command_handler(): registering
'ocd_reset'...
Debug: 192 7 command.c:369 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 193 7 command.c:369 register_command_handler(): registering 'ocd_step'...
Debug: 194 7 command.c:369 register_command_handler(): registering 'ocd_mdw'...
Debug: 195 7 command.c:369 register_command_handler(): registering 'ocd_mdh'...
Debug: 196 7 command.c:369 register_command_handler(): registering 'ocd_mdb'...
Debug: 197 7 command.c:369 register_command_handler(): registering 'ocd_mww'...
Debug: 198 7 command.c:369 register_command_handler(): registering 'ocd_mwh'...
Debug: 199 7 command.c:369 register_command_handler(): registering 'ocd_mwb'...
Debug: 200 7 command.c:369 register_command_handler(): registering 'ocd_bp'...
Debug: 201 7 command.c:369 register_command_handler(): registering 'ocd_rbp'...
Debug: 202 7 command.c:369 register_command_handler(): registering 'ocd_wp'...
Debug: 203 7 command.c:369 register_command_handler(): registering 'ocd_rwp'...
Debug: 204 7 command.c:369 register_command_handler(): registering
'ocd_load_image'...
Debug: 205 7 command.c:369 register_command_handler(): registering
'ocd_dump_image'...
Debug: 206 7 command.c:369 register_command_handler(): registering
'ocd_verify_image'...
Debug: 207 7 command.c:369 register_command_handler(): registering
'ocd_test_image'...
Debug: 208 7 command.c:369 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 209 7 command.c:369 register_command_handler(): registering 'ocd_ps'...
Debug: 210 7 ftdi.c:615 ftdi_initialize(): ftdi interface using
shortest path jtag state transitions
Debug: 211 552 mpsse.c:309 mpsse_open(): current latency timer: 255
Debug: 212 552 mpsse.c:358 mpsse_purge(): -
Debug: 213 552 mpsse.c:623 mpsse_loopback_config(): off
Debug: 214 552 mpsse.c:767 mpsse_flush(): write 7, read 0
Debug: 215 553 mpsse.c:750 write_cb(): transferred 7 of 7
Debug: 217 553 core.c:1537 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 218 553 core.c:1540 adapter_khz_to_speed(): have interface set up
Debug: 219 553 mpsse.c:664 mpsse_set_frequency(): target 500000 Hz
Debug: 220 553 mpsse.c:629 mpsse_set_divisor(): 11
Debug: 221 553 mpsse.c:693 mpsse_set_frequency(): actually 500000 Hz
Debug: 222 553 core.c:1537 adapter_khz_to_speed(): convert khz to
interface specific speed value
Debug: 223 553 core.c:1540 adapter_khz_to_speed(): have interface set up
Info : 224 553 core.c:1358 adapter_init(): clock speed 500 kHz
Debug: 225 553 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 226 553 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 227 553 command.c:147 script_debug(): command - ocd_transport
ocd_transport init
Debug: 229 553 transport.c:246 handle_transport_init(): handle_transport_init
Debug: 230 553 mpsse.c:767 mpsse_flush(): write 9, read 0
Debug: 231 553 mpsse.c:750 write_cb(): transferred 9 of 9
Debug: 232 553 core.c:678 jtag_add_reset(): SRST line released
Debug: 233 553 core.c:702 jtag_add_reset(): TRST line released
Debug: 234 553 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 235 553 mpsse.c:767 mpsse_flush(): write 0, read 0
Debug: 236 553 command.c:147 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init
Debug: 237 553 command.c:147 script_debug(): command - ocd_jtag
ocd_jtag arp_init
Debug: 238 553 core.c:1371 jtag_init_inner(): Init JTAG chain
Debug: 239 553 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 240 553 mpsse.c:767 mpsse_flush(): write 3, read 0
Debug: 241 553 mpsse.c:750 write_cb(): transferred 3 of 3
Debug: 242 553 core.c:1007 jtag_examine_chain(): DR scan interrogation
for IDCODE/BYPASS
Debug: 243 553 core.c:322 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 244 553 mpsse.c:767 mpsse_flush(): write 97+1, read 81
Debug: 245 554 mpsse.c:750 write_cb(): transferred 98 of 98
Debug: 246 555 mpsse.c:736 read_cb(): raw chunk 85, transferred 81 of 81
Info : 247 555 core.c:910 jtag_examine_chain_display(): JTAG tap:
lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00,
ver: 0x3)
Debug: 248 555 core.c:1167 jtag_validate_ircapture(): IR capture validation scan
Debug: 249 555 mpsse.c:767 mpsse_flush(): write 15+1, read 2
Debug: 250 556 mpsse.c:750 write_cb(): transferred 16 of 16
Debug: 251 556 mpsse.c:736 read_cb(): raw chunk 4, transferred 2 of 2
Debug: 252 556 core.c:1226 jtag_validate_ircapture(): lm3s1968.cpu: IR
capture 0x01
Debug: 253 556 openocd.c:145 handle_init_command(): Examining targets...
Debug: 254 556 arm_adi_v5.c:1099 ahbap_debugport_init():
Debug: 255 556 mpsse.c:767 mpsse_flush(): write 207+1, read 12
Debug: 256 557 mpsse.c:750 write_cb(): transferred 208 of 208
Debug: 257 557 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Debug: 258 557 arm_adi_v5.c:1156 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 259 557 mpsse.c:767 mpsse_flush(): write 96+1, read 12
Debug: 260 557 mpsse.c:750 write_cb(): transferred 97 of 97
Debug: 261 558 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Debug: 262 568 arm_adi_v5.c:1156 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 263 568 mpsse.c:767 mpsse_flush(): write 96+1, read 12
Debug: 264 568 mpsse.c:750 write_cb(): transferred 97 of 97
Debug: 265 568 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Debug: 266 579 arm_adi_v5.c:1156 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 267 579 mpsse.c:767 mpsse_flush(): write 96+1, read 12
Debug: 268 580 mpsse.c:750 write_cb(): transferred 97 of 97
Debug: 269 580 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Debug: 270 591 arm_adi_v5.c:1156 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 271 591 mpsse.c:767 mpsse_flush(): write 96+1, read 12
Debug: 272 592 mpsse.c:750 write_cb(): transferred 97 of 97
Debug: 273 592 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Debug: 274 603 arm_adi_v5.c:1156 ahbap_debugport_init(): DAP: wait CSYSPWRUPACK
Debug: 275 603 mpsse.c:767 mpsse_flush(): write 96+1, read 12
Debug: 276 603 mpsse.c:750 write_cb(): transferred 97 of 97
Debug: 277 603 mpsse.c:736 read_cb(): raw chunk 14, transferred 12 of 12
Segmentation fault: 11



-- 
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