On 27 February 2013 17:33, Freddie Chopin <[email protected]> wrote:
> 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.
>From logic, it's hard to believe that the first reset is caused by
hardware problem. You know, if don't run 'openocd' command, my board
can keep running for hours even years, I never see it reset by itself.
The reset only happend when I start the 'openocd' which executes my
openocd.cfg script. My script doesn't contain a 'reset' statement, it
only do some basic setup including: set adapter clock, define TAPs and
define reset mehtods.
Later, when I come to office, I can copy my script here.
>
>> 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?
>
Define reset-init handler this way is what I learned from distributed
scripts. Also, the manual suggest to define the handle in
init_board().
> 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
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 ([email protected])
------------------------------------------------------------------------------
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