Hi!

The change that I've just posted to gerrit should help the issue you have.

http://openocd.zylin.com/#/c/421/

I've tested it by adding additional command to openocd call:
-c "init; echo $_TARGETNAME"
The problem is that you HAVE to have "init" before using the variable - 
that's the way with init_targets() and only setting _TARGETNAME 
explicitly in config files can work... this is another solution (set 
variable, pass variable to init_targets inner functions - the variable 
is set before init now). Currently _TARGETNAME is set internally by 
init_targets() and that is executed on init, while config scripts are 
parsed before that.

BTW - this scheme (init_targets()) is used only in lpc2xxx files... 
Maybe it's not the way?

4\/3!!

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to