LPC546xx USB1 Examples

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC546xx USB1 Examples

Jump to solution
3,647 Views
mattskey
Contributor I

Hi,

I'm developing a bare metal project on a custom board with a LPC54616 and need to get it working as a mass storage device using the USB1 controller.

Does anyone know if there are any LPC546xx example projects which demonstrate using USB1, preferably as a device?

Regards,

Matt...

Labels (2)
Tags (2)
0 Kudos
Reply
1 Solution
2,674 Views
brendonslade
NXP TechSupport
NXP TechSupport

Hi Matt,

the SDK (which you can download from mcuxpresso.nxp.com) includes examples for both USB ports as devices. It doesn't really matter if you load the SDK for LPCXpresso54608 or LPCXpresso54618 when it comes to USB. Look under boards\lpcxpresso54608\usb_examples, and you will see various mass storage class examples there. You need to set the header file to define USB1 or USB0.

Please mark this correct if it answers your question.

Regards,

Brendon

View solution in original post

0 Kudos
Reply
4 Replies
2,674 Views
mattskey
Contributor I

Hi Patrick,

Thanks for the info. There doesn't seem to be an equivalent in the example I'm using but that should help working out what changes I need to make.

Thanks and regards,

Matt...

0 Kudos
Reply
2,674 Views
mattskey
Contributor I

Hi Brendon,

Thanks for the response. I have the boards\lpcxpresso54618\usb_examples\usb_device_msc_ramdisk_lite\bm example project but can't see any settings for USB0/1.

Should I just need to change the values of

USB_DEVICE_CONFIG_LPCIP3511FS and

USB_DEVICE_CONFIG_LPCIP3511HS in usb_device_config.h?

Or should I be looking at a different header file?

Sorry if this is a trivial question, I'm not familiar with MCUXpresso, Eclipse or USB so everything's a bit confusing at the moment. I have the OM13092 (LPCXpresso54608) board but am waiting for a connector before I can programme it. I then have to get it working on custom hardware so any assistance is much appreciated.

Regards,

Matt...

0 Kudos
Reply
2,674 Views
patrickhudson
Contributor III

In the example:

         usb_examples_usb_rom_device_msc_ram_bm

         there is a header file: app_usbd_cfg.h that contains the #define USE_USB0 or USE_USB1

The example that you're using may be similar.

Regards,

Patrick

0 Kudos
Reply
2,675 Views
brendonslade
NXP TechSupport
NXP TechSupport

Hi Matt,

the SDK (which you can download from mcuxpresso.nxp.com) includes examples for both USB ports as devices. It doesn't really matter if you load the SDK for LPCXpresso54608 or LPCXpresso54618 when it comes to USB. Look under boards\lpcxpresso54608\usb_examples, and you will see various mass storage class examples there. You need to set the header file to define USB1 or USB0.

Please mark this correct if it answers your question.

Regards,

Brendon

0 Kudos
Reply