LPC1768

Started by jdauchot January 5, 2010
Hi

Is this chip LPC1768 CORTEX M3 core same as ARM7 NXP CPU's and can I use existing GNU ARM7 Tools etc

Simple yes or No

Regards
Jean-Jacques

An Engineer's Guide to the LPC2100 Series

jdauchot wrote:
> Hi
>
> Is this chip LPC1768 CORTEX M3 core same as ARM7 NXP CPU's

No.
> and can I use existing GNU ARM7 Tools etc

If you are using one that has CM3 support then Yes. Otherwise No.

>
> Simple yes or No

Almost.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by T as meeting the requirements for safety related systems.

> -----Original Message-----
> From: l... [mailto:l...] On Behalf
Of
> jdauchot
> Sent: 05 January 2010 13:52
> To: l...
> Subject: [lpc2000] LPC1768
>
> Hi
>
> Is this chip LPC1768 CORTEX M3 core same as ARM7 NXP CPU's and can I use
> existing GNU ARM7 Tools etc
>
> Simple yes or No

No.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks V2 is out for LPC1700, LPC3100, LPC3200, SAM9, and more!

Hi

Thanks, thats great

I will stick with the 2368

Regards

Jean-Jacques
--- In l..., "Paul Curtis" wrote:
>
> > -----Original Message-----
> > From: l... [mailto:l...] On Behalf
> Of
> > jdauchot
> > Sent: 05 January 2010 13:52
> > To: l...
> > Subject: [lpc2000] LPC1768
> >
> > Hi
> >
> > Is this chip LPC1768 CORTEX M3 core same as ARM7 NXP CPU's and can I use
> > existing GNU ARM7 Tools etc
> >
> > Simple yes or No
>
> No.
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> CrossWorks V2 is out for LPC1700, LPC3100, LPC3200, SAM9, and more!
>

On 05/01/2010 14:14, jdauchot wrote:
> I will stick with the 2368

I think you'll find the Cortex-M3 devices to be a nice step up from the
23xx series.

If you have the latest Yagarto, then you should be able to compile,
debug, etc. The latest Flash Magic will do serial programming and the
latest OpenOCD will do JTAG.

In summary: Update your tools and it all works fairly well.

Pete
Hi:

I agree with Pete: Cortex-M3 is a step up from 23xx series.

Some of the reasons to move to LPC1768:

- Run up to 100MHz
- More power efficient
- 12-bit ADC converter
- Full pin compatible with LPC2368
- Simpler interrupt vector controller (NVIC)
- SysTick Timer as part of the core processor
- Serial Wire Debugger with Trace options included in Core
- Up to 8 hardware breakpoints
- Quadrature Encoder Interface
- USB Host/OTG Controller
- Memory Protection Unit (MPU)
- Bit Banding

Regards,

Alex.
--- In l..., Pete Vidler wrote:
>
> On 05/01/2010 14:14, jdauchot wrote:
> > I will stick with the 2368
>
> I think you'll find the Cortex-M3 devices to be a nice step up from the
> 23xx series.
>
> If you have the latest Yagarto, then you should be able to compile,
> debug, etc. The latest Flash Magic will do serial programming and the
> latest OpenOCD will do JTAG.
>
> In summary: Update your tools and it all works fairly well.
>
> Pete
>

Hi,
for i/o timing for the LPC2000
from http://tech.groups.yahoo.com/group/lpc2000/message/7808

Simple ALU instruction: 1 clock
Load from RAM: 3 clocks
Store to RAM: 2 clocks
Load constant from flash: 3 or 5 clocks, depending on MAM hit/miss
Load from VPB peripheral (GPIO, timer etc.): 8 clocks
Store to VPB peripheral: 7 clocks

Does anyone know what the i/o timing is for the LPC1768?

Also
--- In l..., "alexander_ribero" wrote:
>
> Hi:
>
> I agree with Pete: Cortex-M3 is a step up from 23xx series.
>
> Some of the reasons to move to LPC1768:
>
> - Run up to 100MHz
> - More power efficient
> - 12-bit ADC converter
> - Full pin compatible with LPC2368
> - Simpler interrupt vector controller (NVIC)
> - SysTick Timer as part of the core processor
> - Serial Wire Debugger with Trace options included in Core
> - Up to 8 hardware breakpoints
> - Quadrature Encoder Interface
> - USB Host/OTG Controller
> - Memory Protection Unit (MPU)
> - Bit Banding
>
> Regards,
>
> Alex.
> --- In l..., Pete Vidler wrote:
> >
> > On 05/01/2010 14:14, jdauchot wrote:
> > > I will stick with the 2368
> >
> > I think you'll find the Cortex-M3 devices to be a nice step up from the
> > 23xx series.
> >
> > If you have the latest Yagarto, then you should be able to compile,
> > debug, etc. The latest Flash Magic will do serial programming and the
> > latest OpenOCD will do JTAG.
> >
> > In summary: Update your tools and it all works fairly well.
> >
> > Pete
>

Hi

Thanks again for the info

I have latest Yargato with

This build of yagarto use the following versions:

binutils: 2.19.1
gcc: 4.4.1
newlib: 1.17.0
gdb: 6.8.50-20080308-cvs

And was built to support newlib with reentrant stubs.
For more information take a look in the yagarto_newlib.txt

(17.08.2009, mifi)

Will that generate code for the LPC1768?

Regards

Jean-Jacques
--- In l..., "John S" wrote:
> Hi,
> for i/o timing for the LPC2000
> from http://tech.groups.yahoo.com/group/lpc2000/message/7808
>
> Simple ALU instruction: 1 clock
> Load from RAM: 3 clocks
> Store to RAM: 2 clocks
> Load constant from flash: 3 or 5 clocks, depending on MAM hit/miss
> Load from VPB peripheral (GPIO, timer etc.): 8 clocks
> Store to VPB peripheral: 7 clocks
>
> Does anyone know what the i/o timing is for the LPC1768?
>
> Also
> --- In l..., "alexander_ribero" wrote:
> >
> > Hi:
> >
> > I agree with Pete: Cortex-M3 is a step up from 23xx series.
> >
> > Some of the reasons to move to LPC1768:
> >
> > - Run up to 100MHz
> > - More power efficient
> > - 12-bit ADC converter
> > - Full pin compatible with LPC2368
> > - Simpler interrupt vector controller (NVIC)
> > - SysTick Timer as part of the core processor
> > - Serial Wire Debugger with Trace options included in Core
> > - Up to 8 hardware breakpoints
> > - Quadrature Encoder Interface
> > - USB Host/OTG Controller
> > - Memory Protection Unit (MPU)
> > - Bit Banding
> >
> > Regards,
> >
> > Alex.
> >
> >
> > --- In l..., Pete Vidler wrote:
> > >
> > > On 05/01/2010 14:14, jdauchot wrote:
> > > > I will stick with the 2368
> > >
> > > I think you'll find the Cortex-M3 devices to be a nice step up from the
> > > 23xx series.
> > >
> > > If you have the latest Yagarto, then you should be able to compile,
> > > debug, etc. The latest Flash Magic will do serial programming and the
> > > latest OpenOCD will do JTAG.
> > >
> > > In summary: Update your tools and it all works fairly well.
> > >
> > > Pete
> > >
>

The GCC 4.2.x compiler has an option -mcpu= where, for Cortex-M3, is 'cortex-m3' (i.e. -mcpu=cortex-m3).

Note that the -mthumb option must also be used for LPC1768 as the Cortex-M3 core only executes thumb 2 instructions.

-Scott

--- In l..., "jdauchot" wrote:
>
> Hi
>
> Thanks again for the info
>
> I have latest Yargato with
>
> This build of yagarto use the following versions:
>
> binutils: 2.19.1
> gcc: 4.4.1
> newlib: 1.17.0
> gdb: 6.8.50-20080308-cvs
>
> And was built to support newlib with reentrant stubs.
> For more information take a look in the yagarto_newlib.txt
>
> (17.08.2009, mifi)
>
> Will that generate code for the LPC1768?
>
> Regards
>
> Jean-Jacques
> --- In l..., "John S" wrote:
> >
> >
> > Hi,
> > for i/o timing for the LPC2000
> > from http://tech.groups.yahoo.com/group/lpc2000/message/7808
> >
> > Simple ALU instruction: 1 clock
> > Load from RAM: 3 clocks
> > Store to RAM: 2 clocks
> > Load constant from flash: 3 or 5 clocks, depending on MAM hit/miss
> > Load from VPB peripheral (GPIO, timer etc.): 8 clocks
> > Store to VPB peripheral: 7 clocks
> >
> > Does anyone know what the i/o timing is for the LPC1768?
> >
> > Also
> >
> >
> > --- In l..., "alexander_ribero" wrote:
> > >
> > > Hi:
> > >
> > > I agree with Pete: Cortex-M3 is a step up from 23xx series.
> > >
> > > Some of the reasons to move to LPC1768:
> > >
> > > - Run up to 100MHz
> > > - More power efficient
> > > - 12-bit ADC converter
> > > - Full pin compatible with LPC2368
> > > - Simpler interrupt vector controller (NVIC)
> > > - SysTick Timer as part of the core processor
> > > - Serial Wire Debugger with Trace options included in Core
> > > - Up to 8 hardware breakpoints
> > > - Quadrature Encoder Interface
> > > - USB Host/OTG Controller
> > > - Memory Protection Unit (MPU)
> > > - Bit Banding
> > >
> > > Regards,
> > >
> > > Alex.
> > >
> > >
> > > --- In l..., Pete Vidler wrote:
> > > >
> > > > On 05/01/2010 14:14, jdauchot wrote:
> > > > > I will stick with the 2368
> > > >
> > > > I think you'll find the Cortex-M3 devices to be a nice step up from the
> > > > 23xx series.
> > > >
> > > > If you have the latest Yagarto, then you should be able to compile,
> > > > debug, etc. The latest Flash Magic will do serial programming and the
> > > > latest OpenOCD will do JTAG.
> > > >
> > > > In summary: Update your tools and it all works fairly well.
> > > >
> > > > Pete
> > > >
> > >
>

On 06/01/2010 08:03, jdauchot wrote:
> Will that generate code for the LPC1768?

Depends on how it was built. The latest Yagarto definitely supports
cortex-m3 (as do the toolchains in most versions of RapidiTTy MCU and
Builder).

If you built it yourself check the patch that you probably applied to
the GCC source directory -- it should mention "thumb2" for the required
library support.

If it is pre-built, you can also check for the thumb2 directories. One
will be under:

\lib\gcc\arm-elf\\thumb\thumb2

If that's present and contains libgcc.a (amongst others), then it
probably supports cortex-m3.

Pete