I am testing USB HID Generic demo(BM version) and works fine..
Then, I am using Wizard 2.x in KDS 3.2.0 to generate my own project by choosing "include all driver", no RTOS option.
After that, I copied required USB stack and files from demo project, compile it, link it to generate *.elf fine. All work fine.
But, when I download it to my FRDM-K66F and run it, I got the error code==0x02(USB Busy) when I call USB_DeviceClassInit(CONTROLLER_ID, &g_UsbDeviceHidConfigList, &g_UsbDeviceHidGeneric.deviceHandle)). I check CONTROLLER_ID is 2.
Looks like it can't allocate memory for my USB handle...
Can anyone tell me where the problem can be, related to environment setting, like OS?