> > I tried to add support to LPC11XX in vsprog.
> > LPC11XX is CortexM0 from NXP.

We want "OpenOCD" support, not "vsprog" support,
for such things ... :)

> Aha! I think that's exciting! I am most interested in
> LPC13xx, but I
> assume there may be some things in common.

Yes.  13xx is Cortex-M3 (ARM v7m), while
the M0 is ARM v6m -- a subset.  I expect
the initial quick hack for M0 support will
be to treat it as an M3 ... according to the
v[67]m arch specs, it looks like that will
work OK from the debug perspective.

>From the programming perspective, the most
obvious difference is that M0 basically uses
the Thumb-1 instruction set not Thumb-2 ...
so there aren't as many usable registers (the
"upper" 8 registers are very limited), and code
generation needs more instructions, often using
two 16-bit opcodes instead of one 32-bit opcode.

The big similarity between the 11xx and 13xx
chips is that they don't support JTAG:  SWD-only.
So OpenOCD support for both is on hold until the
SWD patches are more complete.

> 
> 
> > If anyone tries to add it to OpenOCD, he can test these differences.

Yep, this is absolutely on the agenda for the
SWD patches I'm working on.  13xx will work first,
since it's "just" another Cortex-M3 chip.

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to