LPC546xx USB1 Examples

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC546xx USB1 Examples

ソリューションへジャンプ
3,650件の閲覧回数
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...

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 解決策
2,677件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
2,677件の閲覧回数
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 件の賞賛
返信
2,677件の閲覧回数
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 件の賞賛
返信
2,677件の閲覧回数
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 件の賞賛
返信
2,678件の閲覧回数
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 件の賞賛
返信