USB Serial on LPC Xpresso 54114

Hi
I work with an LPCXpresso54114 on mbed studio.
I want to use USBSerial.

My code is just simple,
#include “mbed.h”
#include “USBSerial.h”
USBSerial serial;
int main(){
serial.printf(“Hello World!\n”);
}

However, the output says
Warning: L3912W: Option ‘legacyalign’ is deprecated.
Error: L6218E: Undefined symbol USBSerial::USBSerial(bool, unsigned short, unsigned short, unsigned short) (referred from BUILD/LPC54114/ARMC6/main.o).
Error: L6218E: Undefined symbol USBSerial::~USBSerial() (referred from BUILD/LPC54114/ARMC6/main.o).
not builded.

USB API is not ready to LPC54114?
Or is there any problem on the code?

Best

Hello Tomo,

Yes, it seems that there is no USBDevice driver (UBSSerial included) available yet .

To check open targets.json and search for “LPC54114”. The “device_has” section does not seem to have an “USBDEVICE” item.

1 Like

Thanks a lot!