On Wednesday 27 January 2010, Thomas Kindler wrote: > There's a quirk (bug?) in OpenOCD that requires you to give the -f > option explicitly when using -c commands. > > So "openocd -f openocd.cfg -c erasemem" should work. > > Also, you have to call "init"-function first -- either on the command > line, or in your openocd.cfg.
I'll call that just a case of docs being unclear. If you give "-f" commands, they're all mapped to "source" commands and then added to a startup command list. The only time "openocd.cfg" is consulted is when that list of startup commands is empty. I'll update the docs. - Dave _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development