Please help with ARM-USB-OCD-H and LPC-P1114, LPC-P1227

Started by rhaguiuda, November 22, 2013, 03:38:43 PM

Previous topic - Next topic

rhaguiuda

I'm having a big headache with ARM-USB-OCD-H with LPC-P1114 and LPC-P1227.

After reading the Manual IAR I figured out that I need to configure my OpenOCD Server to use the ARM-USB-OCD-H programmer with my targets.

The configuration file for the ARM-USB-OCD-H are provided but there are no targets for LPC-P1114 or LPC-P1227 in tcl folder. I tried to download the new OpenOCD version 0.7.0 but this version also doesn't have config files for these targets.

Where can I get configuration files for these targets?

LubOlimex

Hey rhaguiuda,

Sorry to bring you the bad news but ARM-USB-OCD-H uses JTAG interface. It doesn't have built-in Serial Wire Debug (SWD).

LPC-P1114 and LPC-P1227 can be programmed only via SWD interface! As a general rule, Cortex M0 microcontrollers lack full JTAG interface. This is clearly written on both board pages and in their user manuals.

We sell an adapter for SWD that might be used with ARM-USB-OCD-H but unfortunately, it is not supported in IAR. It is supported only in Rowley Crossworks so far (I am not sure if somebody managed to use it with OpenOCD). Link to the adapter: https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-SWD/.

Another option is the adapter we sell - ARM-JTAG-COOCOX which has JTAG and SWD support out-of-the-box but doesn't work with OpenOCD (works with the free CooCox IDE and has support for Keil and IAR EW via external plugin). The debugger itself is open-hardware. Link to the product: https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-COOCOX/open-source-hardware.

Alternatively, search for any other IAR-compatible debugger (e.g. can be selected in debugger group of the project options) with SWD interface.

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