I have LPC54018 IOTmodule (OM40007). When compiling and debugging the example from the SDK: hello_world_virtual_com_xip, the host pc signals an error in usb device attachment (device descriptor request failed) (see dump below).
I also noticed that some code in the file usb_device_config.h is repeated 11 times in the same file (also see below). I tried to remove duplicates but it did not change - which actually makes sense. So the problem of enumeration is not in this particular part, but its an indication that the code has slipped the final QC explaining why the problem has not been identified.
Thanks for any hints why example fails.
code lines duplicated 11 times:
* @name Hardware instance define
/*! @brief KHCI instance count */
#define USB_DEVICE_CONFIG_KHCI (0U)
/*! @brief EHCI instance count */
#define USB_DEVICE_CONFIG_EHCI (0U)
/*! @brief LPC USB IP3511 FS instance count */
#define USB_DEVICE_CONFIG_LPCIP3511FS (0U)
/*! @brief LPC USB IP3511 HS instance count */
#define USB_DEVICE_CONFIG_LPCIP3511HS (1U)
/*! @brief Device instance count, the sum of KHCI and EHCI instance counts*/
#define USB_DEVICE_CONFIG_NUM \
(USB_DEVICE_CONFIG_KHCI + USB_DEVICE_CONFIG_EHCI + USB_DEVICE_CONFIG_LPCIP3511FS + USB_DEVICE_CONFIG_LPCIP3511HS)