Content originally posted in LPCWare by Tsuneo on Sat Dec 01 10:14:48 MST 2012
Hi,
I believe the USB on-chip driver assigns the Endpoint command/status list (EPLISTSTART) and endpoint Data buffer (DATABUFSTART) at the start of the USB RAM (0x20004000).
To confirm it, break on debugger while your LPC11U24 runs the ROM driver example, and read out EPLISTSTART and DATABUFSTART registors. Unfortunately, I can't do it by myself, because I'm working on a place, far from my office.
Also, I believe you may assign the rest of the USB RAM to the memory for the instances of USBD and CDC APIs, because CDC implementation doesn't use all of the USB RAM.
Tsuneo