On Thu, Apr 01, 2010 at 12:03:42PM +0200, [email protected] wrote:
> [email protected] napisaƂ:
> >It works with commands issued through telnet, but fails with the same
> >commands supplied via -f file.cfg on the command line.  I also tried
> >-c options and it fails in the same way.
> >
> >The error is: Runtime error ... invalid command name "reset"
> 
> You need to add another command before any non-configuration command
> - "init". It works through telnet, because "init" is executed
> automatically after processing and executing ALL command line
> parameteres, so if you want to do something this way, add "-c
> "init"" before your file or add "init" command before commands like
> "reset halt".

Thanks a lot Freddie!

This also directed me to the relevant sections of the manual where I
discovered the "shutdown" command to complete my script:

init
reset halt
stm32x mass_erase 0
flash write_bank 0 Executable_1.bin 0
reset
shutdown

Cheers. ;-)
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to