What is the new syntax for calling a script file for flashing memory?
The old one was
target_script 0 reset stm32-flash.script
but this doesn’t work anymore.
My config file works fine except for this. I have tried
$_TARGETNAME configure -event reset-end “script stm32f-flash.script”
based on some material that I found on the web. When I append this line to the end of my openocd config file stm32f-OpenOCD.cfg, and do:
openocd -f stm32f-OpenOCD.cfg
the connection is made to the board and I get:
Open On-Chip Debugger 1.0 (2008-12-27-11:22) svn:1284
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
$URL: http://svn.berlios.de/svnroot/repos/ope … /openocd.c $
500 kHz
jtag_speed: 2
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info : JTAG Tap/device matched
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Error: JTAG tap: stm32.bs got: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)
Error: JTAG tap: stm32.bs expected 1 of 1: 0x06414041 (mfg: 0x020, part: 0x6414, ver: 0x0)
Error: trying to validate configured JTAG chain anyway…
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666
and it hangs there. When I delete the line from stm32f-OpenOCD.cfg and execute
openocd -f stm32f-OpenOCD.cfg
by hand, and open the telnet session from another window, it all works fine and I flash the memory properly. I do get the same messages as above. It appears that with the line in stm32-OpenOCD.cfg, it still isn’t executing the script, and is still waiting for a telnet session.
What am I doing wrong?
Regards,
Peter