On Sunday 27 September 2009, Freddie Chopin wrote:
> David Brownell pisze:
> >> -f interface/sth.cfg -f target/sth.cfg
> > 
> > That's the same as a "wrapper script".
> > 
> > Just stick "-c set CRYSTAL_SPEED 3579545" in there, same effect.
> 
> I tried the same yesterday (-c "set CRYSTAL_FREQ xxx") but... it doesn't 
> work...
> 
> > c:\>openocd -c "set CRYSTAL_FREQ 12000000" -f target/lpc2103.cfg
> > Open On-Chip Debugger 0.2.0 (2009-07-26-10:51) Release
> > $URL: 
> > http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.2.0/src/openocd
> > .c $
> > For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
> > Runtime error, file "C:\Program 
> > Files\OpenOCD\0.2.0\bin\../target/lpc2xxx_intern
> > als.tcl", line 32:
> >     Variable: CRYSTAL_FREQ is not set, cannot continue
> 
> What am I missing?

Not sure; did it fail the same way with that set in
an "openocd.cfg" file?

There's a bunch of code that works today and uses
variables set in previous files.  If you're doing
that the same way that code does, I'd expect it
to "just work".

If it doesn't ... seems buggish, but maybe you
could declare it as a global.
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to