On Sat, Mar 02, 2013 at 04:34:38PM +0100, Peter Stuge wrote:
> Woody Wu wrote:
> > After I power up my board and start openocd, I can see my config file
> > run with no error and my board get a reset
> 
> The reset may be in some of the tcl files for your board.

The only external cfg file I sourced in is interface/jlink.cfg. I think
I don't use other tcl files.  Below again I paste my openocd.cfg:


------------------------------------
gdb_port
tcl_port
telnet_port

source [find interface/jlink.cfg]
adapter_khz 500

set _CHIPNAME s3c2416
set _ENDIAN little
set _CPUTAPID 0x07926f0f

proc on_reset_init {} {
    echo "event: reset-init"
}

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f -expected-id 
$_CPUTAPID

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position 
$_TARGETNAME -variant arm926ejs

$_TARGETNAME configure -work-area-phys 0x4000000 -work-area-size 0x2000 
-work-area-backup 0

reset_config trst_and_srst
#adapter_nsrst_assert_width 2000
#adapter_nsrst_delay 2000

set _NANDNAME $_CHIPNAME.nand
nand device $_NANDNAME s3c2410 $_TARGETNAME

$_TARGETNAME configure -event reset-init {
    on_reset_init
}
------------------------------------------

So I think what I had is a double problem: an unexpected reset and a
failed intended reset.

Really hope someone can help me.

> 
> Reset behavior is pretty much random across the set of supported
> boards and even targets in OpenOCD. There's no effort to keep this
> consistent, so probably nobody is thinking of anything but the boards
> that they work with themselves.
> 
> 
> //Peter
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> OpenOCD-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openocd-devel

-- 
woody
I can't go back to yesterday - because I was a different person then.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to