LPC4088 pendrive support

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

LPC4088 pendrive support

129 Views
Nipperkin
Contributor I

Hello. I am implementing USB Host functionality on the LPC4088 for pendrive support. The code works correctly on the LPC QuickStart board, but fails to enumerate devices on our custom hardware.
Specifically, `USB_Host_SendControlRequest()` returns `HOST_SENDCONTROL_PipeError` instead of `HOST_SENDCONTROL_Successful` during enumeration. I suspect the issue lies within `HcdControlTransfer()`, possibly related to pipe configuration, but I have been unable to identify the root cause.
Any insights would be greatly appreciated.

...
Labels (1)
0 Kudos
Reply
1 Reply

49 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @Nipperkin 

Since the same firmware works on the LPC4088 QuickStart board, the issue is likely hardware-related rather than in HcdControlTransfer() itself. I would recommend checking:

USB VBUS 5V power and power-switch control
D+/D− routing and pin configuration
USB 48 MHz clock configuration
Placement/alignment of USB Host DMA structures (HCCA/ED/TD) in USB-accessible RAM

BR

Harry

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2419414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC4088%20pendrive%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2419414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello.%20I%20am%20implementing%20USB%20Host%20functionality%20on%20the%20LPC4088%20for%20pendrive%20support.%20The%20code%20works%20correctly%20on%20the%20LPC%20QuickStart%20board%2C%20but%20fails%20to%20enumerate%20devices%20on%20our%20custom%20hardware.%3CBR%20%2F%3ESpecifically%2C%20%60USB_Host_SendControlRequest()%60%20returns%20%60HOST_SENDCONTROL_PipeError%60%20instead%20of%20%60HOST_SENDCONTROL_Successful%60%20during%20enumeration.%20I%20suspect%20the%20issue%20lies%20within%20%60HcdControlTransfer()%60%2C%20possibly%20related%20to%20pipe%20configuration%2C%20but%20I%20have%20been%20unable%20to%20identify%20the%20root%20cause.%3CBR%20%2F%3EAny%20insights%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2419414%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC40xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2420029%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC4088%20pendrive%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2420029%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F267212%22%20target%3D%22_blank%22%3E%40Nipperkin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20the%20same%20firmware%20works%20on%20the%20LPC4088%20QuickStart%20board%2C%20the%20issue%20is%20likely%20hardware-related%20rather%20than%20in%20HcdControlTransfer()%20itself.%20I%20would%20recommend%20checking%3A%3C%2FP%3E%0A%3CP%3EUSB%20VBUS%205V%20power%20and%20power-switch%20control%3CBR%20%2F%3ED%2B%2FD%E2%88%92%20routing%20and%20pin%20configuration%3CBR%20%2F%3EUSB%2048%20MHz%20clock%20configuration%3CBR%20%2F%3EPlacement%2Falignment%20of%20USB%20Host%20DMA%20structures%20(HCCA%2FED%2FTD)%20in%20USB-accessible%20RAM%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E