W dniu 2013-02-27 10:12, Woody Wu pisze:
> There is something I want to ask for the scenario so far:  since my
> board get reseted after the openocd started, does this mean that the
> openocd issued a 'reset' to my target and succeeded? The user manual
> mentioned that in the last step of openocd's configuration stage, it
> will do a 'init' + 'reset', but no more details.

OpenOCD does NOT issue ANY command that affect target or interface 
automatically - "init" command is an "internal" command that only 
affects OpenOCD. So OpenOCD does NOT automatically reset the target on 
startup. You either have "reset" somewhere or some hardware problem.

> The last is a very basic openocd question: I found my reset-init event
> handler never get executed, is that normal?  My understanding is, the
> 'reset' has at least succeeded for one time, that is when the openocd
> entered into the run stage and I really saw that my board is get reseted
> as I just described before.  So, my handler should get triggered bug it
> was not. The handler defined as:
>
>
>      proc init_board {} {
>          ...
>
>          $_TARGETNAME configure -event reset-init {
>              echo "event: reset-init"
>          }
>      }

First of all, this handler is executed ONLY for "reset init" command - 
all other (reset, reset halt, reset run) don't call it. Second thing - 
maybe it's not right to put the handler IN another procedure?

4\/3!!


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