Windows GUI for flashing with ARM-USB-OCD(-H)

Started by olimexuser, July 23, 2013, 02:57:01 PM

Previous topic - Next topic

olimexuser

Is there a free/low cost Windows GUI tool for flash programming an ARM7TDMI (ADuC702x). It doesn't need all the features that Segger JFLASH or the Macraigor program have.

H-JTAG doesn't seem to support the Olimex USB/JTAG adaptor and CooCox flasher only supports Cortex-M3.

Alternatively a step by step dummies guide to running openocd from the command line, including writing the adaptor and device scripts.


LubOlimex

Hello olimexuser,

I haven't stumbled on such a flasher software also.

Please check these documents:

https://www.olimex.com/Products/ARM/JTAG/_resources/Manual_PROGRAMMER.pdf

https://www.olimex.com/Products/ARM/JTAG/_resources/Manual_TELNET.pdf


The official documentation is also a good source of information:

http://openocd.sourceforge.net/doc/pdf/openocd.pdf

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

olimexuser

I download the compiled 0.7.0 OpenOCD from http://www.freddiechopin.info/en/download/category/4-openocd

and ran

  openocd-0.7.0.exe -f olimex-arm-usb-ocd-h.cfg -f aduc702x.cfg

With the supplied config files. There doesn't seem to be too much in aduc702x.cfg. What I'm after achieving is an erase/program/verify.

I know the information will be in the OpenOCD manual, but I just don't know where to start with it! I guess for a start I need a proc program_device ()?



LubOlimex

The aduc702x.cfg in the OpenOCD version cross-compiled for Windows by Freddie Chopin looks like a good cfg. The line you have used "openocd-0.7.0.exe -f olimex-arm-usb-ocd-h.cfg -f aduc702x.cfg" is often used as a connection-testing line or a line that makes it possible external debugging software to access the chip via the OpenOCD interface (say IAR EW).

To flash it you need to adapt the "proc program_device ()" for your processor (according to the processor's datasheet).

You might want to join the OpenOCD mail list, there are a lot of helpful folks over there who might be more specific.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex