OpenOCD r423 flash script commands

After installing the new r423 version, the following script commands stopped working.

flash erase 0 0 21

flash write 0 test.bin 0x0

I did find a note in the tutorial that write was depreciated and replaced with write_binary. But I’m still getting a command not found error.

Any ideas?

Hello kd7lmo,

some of the commands had changed:

old

flash erase 0 0 21

new

flash erase_sector 0 0 21

old

flash write 0 test.bin 0x0

new

flash write_image test.bin 0x0 bin

Regards,

Michael

Thanks for the fast reply. Is there a link to the new command set. I could only find a reference to the old one.

Do you use OpenOCD on windows or on linux?

If you use OpenOCD from the YAGARTO page, it comes

with a pdf.

If you build openocd yourself, try to build the pdf too:

make pdf

Even you can start telnet an use help.

Regards,

Michael

It is the OpenOCD for Windows. I missed the PDF file that was in the installation directory. I was looking on the web instead. RTFM! That fixed the problems and was actually pretty useful to learn about other commands.

Thanks!