Content originally posted in LPCWare by mrob on Fri Oct 12 07:53:43 MST 2012
Thanks for the help, I was running into that and having trouble tracking down the problem.
EDIT: Ends up that wasn't part of my issue. I'm using the LPC11U24FBD48/401 which does have 8K of ram available (the "/301" version only has 6K)
I'm having an issue with the MSC driver example.
The code seems to get stuck copying the disk image from the constant to ram.
In lpc11uxx_usbd_msc_mem.c
<code>ErrorCode_t usb_msc_mem_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR* pIntfDesc, uint32_t* mem_base, uint32_t* mem_size)
{
USBD_MSC_INIT_PARAM_T msc_param;
ErrorCode_t ret = LPC_OK;
uint32_t n;
for (n = 0; n < MSC_PhysicalMemorySize; n++) { /* Copy Initial Disk Image */
Memory[n] = DiskImage[n]; /* from Flash to RAM */
}
</code>
If I comment out the for loop, it seems to work fine.
Has anyone else seen this, or is it just me?
Update: It ends up I'm still having issues with the CDC example. The Windows Device Manager is saying the device couldn't start. If I reinstall the drivers, it works until my device is either removed or reset.