ADuC7000 flash programming and Olimex ARM-USB-OCD

My questions concern the Olimex ARM-USB-OCD and programming an Olimex ADuC development board (i.e. ADuC-P7026).

What is involved in downloading to the integrated flash of the ADuC? Will additional cables or software tools be needed? Can the static ram be loaded as well? Is debugging affected by where the code is loaded?

Also, to what extent will the development software support external memory (flash, SRAM, etc)?

Thanks,

Steve

Currently, the ARM-USB-OCD is supported only by the OpenOCD (afaik), and the OpenOCD doesn’t support writing the internal flash of ADuCs. Rowley’s CrossWroks is going to support the ARM-USB-OCD in the future, but there’s no firm data yet (afaik), but I guess Rowley supports the ADuC’s internal flash. Besides JTAG, the ADuC also support programming via the serial port using the built-in bootloader. The Olimex board has a FT232 USB->Serial converter for that purpose.

Loading the static RAM and debugging is possible with the OpenOCD, no matter if the code resides in RAM or in Flash. The OpenOCD also supports external flashes if they’re CFI compatible and using the Intel commandset. There are patches floating around that add support for Atmel/AMD/Spansion flashes, but nothing cleaned up and polished yet.

Debugging code in RAM is generally more convenient, as you can have as many breakpoints as you want. When your code is in flash, you’re limited to the two hardware breakpoints provided by the ARM core. This isn’t a problem, but you need to be aware of it.

Regards,

Dominic

Hello,

I am also a newbie in ARMs, and dry to run the ADuC-P7026 development board, by making a port toggle or something.

Firstly I want to send the data via the serial port. (there is a USB connector on the board with a FT232BM chip)

So - which USB driver do I need for the cable?

Besides I have the ARM-USB-OCD cable, and tried to run the bord with eclipse+OpenOCD. Is it possible?

Or which software should I use?

Thanks,

Christoph

christoph:
Firstly I want to send the data via the serial port.

So - which USB driver do I need for the cable?

The USB driver from http://www.ftdiChip.com/drivers/vcp.htm works.

But the question with the ARM-USB-OCD cable still remains.

Christoph

The OpenOCD + ARM-USB-OCD should work with an ADuC, but you wont be able to write the ADuC’s internal flash using the OpenOCD. You can only write to RAM using the OpenOCD (and halt, resume, step, set breakpoints etc.).

To write the internal flash, use the internal bootloader of your device.

Regards,

Dominic

Thanks Dominic.

But how should the config file for OpenOCD look like, to debug via JTAG + ARM-USB-OCD in flash?

Has someone a working version?

Christoph