LPC11U14's ROM_USB_cdc example regarding

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

LPC11U14's ROM_USB_cdc example regarding

2,068 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thillaielayaraja on Mon Jun 25 10:53:56 MST 2012
Dear all,

I'm using the LPC11U14 LPC-Link kit for verifying the ROM_USB_cdc example provided by LPCXpresso. This example uses the dependent project files like LPC11Uxx_DriverLib and CMSISv2p00_LPC11Uxx. When I compiled the example, the dependent files are compiled without any errors but the ROM_USB_cdc throws an error for the following line under the main function.

  /* get USB API table pointer */
  pUsbApi = (USBD_API_T*)((*(ROM **)(0x1FFF1FF8))->pUSBD);

ERROR:
../src/main.c:383:50: error: 'ROM' has no member named 'pUSBD'

REASON:
The following is the structure of ROM

typedefstruct _ROM {
#ifdef USBROMD_PRESENT
   const USB * pUSBD;
#else
   const unsigned p_usbd;
#endif /* USBROMD_PRESENT */
   const unsigned p_clib;
   const unsigned p_cand;
#ifdef PWRROMD_PRESENT
   const PWRD * pPWRD;
#else
   const unsigned p_pwrd;
#endif /* PWRROMD_PRESENT */
   const unsigned p_dev1;
   const unsigned p_dev2;
   const unsigned p_dev3;
   const unsigned p_dev4;
}  ROM;

i.e., pUSBD pointer is enclosed under the  USBROMD_PRESENT preprocessor, which is not defined anywhere in the project files.

When I define it manually, I find that the USB structure is not defined anywhere.

Can someone tell me, how to define USB?

Thanks for the help!
0 Kudos
Reply
5 Replies

2,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thillaielayaraja on Tue Jun 26 05:50:06 MST 2012
Thanks for your quick reply.
Yes, it is mentioned.
Thank you for the info.
0 Kudos
Reply

2,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jun 26 04:59:59 MST 2012

Quote: thillaielayaraja
I'm wondering why this information is not very clear from the documentations. Is it mentioned somewhere.



UM page 3:

1.2 Features
...
ROM based drivers:
...
– LPC11U2x only: ROM-based USB drivers.

or

Chapter 10: LPC11Uxx USB on-chip drivers

10.1 How to read this chapter
The USB on-chip drivers are available on parts LPC11U2x only.
0 Kudos
Reply

2,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by thillaielayaraja on Tue Jun 26 04:42:29 MST 2012
Thank you for the info. I'm wondering why this information is not very clear from the documentations. Is it mentioned somewhere. Sorry for the ignorance.
0 Kudos
Reply

2,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cwpjr on Mon Jun 25 20:07:47 MST 2012
<great support>
0 Kudos
Reply

2,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Tsuneo on Mon Jun 25 18:59:05 MST 2012
[I]> I'm using the LPC11U14 LPC-Link kit for verifying the ROM_USB_cdc example provided by LPCXpresso.[/I]

Only LPC11U2x has ROM-based USB drivers. LPC11U14 doesn't.
Example of ROM-based USB drivers for LPC11U2x is found in USBROMDriver folder, included in,
"Sample Code Bundle for LPC11Uxx Peripherals using Keil's MDK-ARM"
http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-keils-mdk-arm-0

Tsuneo
0 Kudos
Reply