Hi all,
I've just found a compiling/usage difficulty with the git version on
cygwin. Apparently somewhere between 0.4.0 and mainline (possibly
jimtcl?) openocd no longer handles dos line endings on config files.
Apparently all my config files of my existing 0.4.0 installation have
dos line endings and I'd never realised or cared, but I compiled git
on cygwin and tried to use it with my existing openocd.cfg and was
treated to this error:

Open On-Chip Debugger 0.5.0-dev-00589-gfdae512-dirty (2010-11-16-10:00)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Runtime Error: embedded:startup.tcl:57:
in procedure 'script'
at file "embedded:startup.tcl", line 57

This is a very un-user-friendly error message and had me stumped, I
though my build was broken or something. It took me a lot of stuffing
around with config files to realise it was just a dos2unix on my
config file away from working, and now I'm all good.
I personally don't have an issue with requiring unix line endings,
it's just that this is a nasty way to fail, a cleaner error message
would have been useful.

Cheers,
Andrew
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to