There is an implicit 'init' command run after all the command line arguments are processed. If you do 'openocd -f interface/jtagkey.cfg - f target/stm32.cfg', then it will do an init just before the telnet server is started. By adding '-f openocd.cfg' at the end, your script is run before the init. Just add 'init' as the first line of your openocd.cfg and it should work.
--
Rick Altherr
[email protected]

"He said he hadn't had a byte in three days. I had a short, so I split it with him."
 -- Unsigned



On Jan 22, 2009, at 4:02 AM, Uwe Koppe wrote:

Hi,

I just upgraded to openocd V1.0 and I am confused about the
following behaviour. The command line

openocd -f interface/jtagkey.cfg -f target/stm32.cfg -f openocd.cfg

fails with

invalid command name "reset_halt"

Here is the openocd.cfg script:
----------------------------------------------
# Flash Programming script

reset halt

stm32x mass_erase 0
sleep 10
flash write_image cosv3r04.elf 0x00000000 'elf'
        
reset run
resume  
#
---------------------------------------------

The funny thing is that these commands work when I am
connected via telnet. What am I missing?


Greetings
Uwe


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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to