NOTICE: This website will be shut down in the near future. Product content has moved to Forum content and FAQs have been moved to We encourage you to create a user account on to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.



Forum for lpc17xx devices

USB bulk transfers (Host requests handling)

I am working with LPC1769. I am trying to workout USB bulk transfers (IN and OUT endpoints handling).

Once Host first issues (IN request) I can't get any data. No interrupt is set (debugging with LPCXpresso).
In case Host issues (OUT request) I got interrupt and my BulkOut function is called.

Host IN requests starts working in case my BulkOut(void) functions includes USB_WriteEP(IN, data, 64). Then
IN requests starts working and BulkIn function is called.

LibUsb drivers are used for PC application.

What are the solutions and causes? Maybe I have missed something.

lwIP - timeouts and re-init


I use lwIP in one commercial product (LPC2478) and intend to continue to use it in a future LPC1788-based product as well.

patches to cmsis phirephar library

Who Is developing cmsis peripheral library to lpc17xx and 178x MCU?

I see a git repositary here. There is the page of project and how take a partisapate?

Is is free software ?

1778 NVIC - Undocumented IRQ

Investigation on a 1778 device (LQFP-208) has revealed that the NVIC implements 42 IRQs.

Only 41 are documented Watchdog to EEPROM.

Does anyone know what the extra one is for, and if it would be safe
to use it as a software triggered interrupt?

Cheers, Mike

What are the minimum hardware (pin) lines required for host (USB1) [No OTG] on the 1778?

On our custom board, what are the minimum processor pins I need to connect to get a USB host port (USB1) I don't care about over current or power enable as I intend to connect 5V permanently to the type A connector's Vbus pin.

I'm only ever going to plug in a USB flash drive for firmware update.

The UM10470 appears to imply that USB1_PWRD must be configured. Is this the case (I don't want any OTG stuff). If needed, can I tie to 5V (or 3.3V?) Or can I just enable the built in pull up?

lpc1788 SPI

Please help me:
I'm try read info from eeprom mxic, connected to SSP0 at pins p0.15-18.
CS from eeprom i connect to ground.
I get SSP driver from CMSIS, and try send CMD's to eeprom, but not good - i get two 0x00ff Sad


Proper PLL Calculator for LPC177x/178x

The 17xx PPL Calculator on the NXP site is only useful for 176x etc. As the 177x and 178x
have a very different (and brain damaged) PLL block.

So I have made a first stab at a 177x/178x specific calculator.

As I am mostly a novice with Excel (and only have Excel97) I don't know how to colour cells with Clock speeds that are legal but unobtainable (because no legal Fosc exists).

So only use results on rows where there is a legal Fosc value in the left hand grid.

To use, just enter the crystal speed (in MHz). E.g. 12 for 12Mhz, or 18.432 etc.

USB Host questions for 1788

Hi All

I'm trying to get USB Host to work on my LPC1788. I'm using port 2 as host.

I use the USBHost lite sample from NXP

What I have changed:

The port pin setup to use the USB port 2
The base address to match the lpc1788 mem map. (0x2000 0000)
Added Port 2 stuff to the IRQ handler (LPC_USB->RhPortStatus2 control etc.)

What do work:

When I insert an USB stick, the IRQ get called and handle interrupt for port 2
The HOST_RhscIntr get set and the Host_EnumDev function continue.
The RhPortStatus2 get reset
The Host_ProcessTD gets called.

lpc1788: UART with 3 Mbaud - receiver not working


As the title says I have a problem with receiving data at higher speeds. I have tested the UART with the speed of 3 Mbaud and sending data is not a problem. The reason for trying out the 3 Mbaud is that the FTDI chip which the UART is connected to supports those speeds.
So when I try to receive data with the normal RBR interrupt I can receive data, but only the first byte is correct, the rest is completely wrong, not just single bits. I found that plausible because the whole interrupt would need less than 40 cycles to finish to not lose any data, possibly less.

RTC stops on LPC1768

Dear Sir/Madam,

for the first time we use the RTC on the LPC1768 in a new product.

XTAL1 and XTAL2 pins are connected to a quartz crystal 32.768KHz.
Additionally each pin has one 22pF capacitor to ground.
Tuning Fork Crystal Specifications:
Series resistance: max. 40k Ohm
Load capacitance: 12.5pF
A CR2032 lithium battery is used for alternative power supply for the RTC.

Unfortunately, the RTC often stops when the 3.3V main power supply was turned on.
Likewise, it is possible to "blow out the RTC", even without halitosis. Wink

Replacing the quartz has not helped.