LPC54628 usb0 FS HC transfer failed after a USB connection inactive for a long

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

LPC54628 usb0 FS HC transfer failed after a USB connection inactive for a long

Jump to solution
1,134 Views
changlin_ren
Contributor II

I use LPC54628 controller usb0 FS HC connect to a usb device, and it runs 24/7. I was told USB device is configured never go to sleep or deep-sleep, or Deep power-down mode.

The issue is when a USB connection inactive for a long time period, the first usb transfer always failed (kStatus_USB_TransferFailed) after usb reset, communication recovered. Base on user manual, by default, usb0 deep-sleep is sw configured,  and Deep power-down mode is "off"

Question:
1. if "deep-sleep" is sw configured, what is by default?
2. could you send me a demo code to explicitly to turn  deep-sleep off?

Thank you,

Labels (3)
0 Kudos
Reply
1 Solution
1,101 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @changlin_ren 

 

LPC54628  operate as a USB device or host?  By default, it is in active mode. We need to check the code to determine the exact configuration. How about first running a USB demo from the SDK? Then I can help you check it.

 

BR

Alice

 

View solution in original post

0 Kudos
Reply
3 Replies
1,102 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @changlin_ren 

 

LPC54628  operate as a USB device or host?  By default, it is in active mode. We need to check the code to determine the exact configuration. How about first running a USB demo from the SDK? Then I can help you check it.

 

BR

Alice

 

0 Kudos
Reply
1,065 Views
changlin_ren
Contributor II
LPC54628 operate as a USB host

"By default, it is in active mode." I think this is the answer I need. Thanks
0 Kudos
Reply
1,116 Views
changlin_ren
Contributor II
rewrite the issue:
The issue is when a USB connection inactive for a long time period, the first usb transfer always failed (kStatus_USB_TransferFailed).
After usb reset, communication recovered
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1971656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC54628%20usb0%20FS%20HC%20transfer%20failed%20after%20a%20USB%20connection%20inactive%20for%20a%20long%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1971656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20use%26nbsp%3BLPC54628%20controller%20usb0%20FS%20HC%20connect%20to%20a%20usb%20device%2C%20and%20it%26nbsp%3Bruns%2024%2F7.%20I%20was%20told%20USB%20device%20is%20configured%20never%20go%20to%20sleep%20or%20deep-sleep%2C%20or%26nbsp%3BDeep%20power-down%20mode.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20issue%20is%20when%20a%20USB%20connection%20inactive%20for%20a%20long%20time%20period%2C%20the%20first%20usb%20transfer%20always%20failed%20(kStatus_USB_TransferFailed)%20after%20usb%20reset%2C%20communication%20recovered.%20Base%20on%20user%20manual%2C%20by%20default%2C%20usb0%20deep-sleep%20is%20sw%20configured%2C%26nbsp%3B%20and%26nbsp%3BDeep%20power-down%20mode%20is%20%22off%22%3CBR%20%2F%3E%3CBR%20%2F%3EQuestion%3A%3CBR%20%2F%3E1.%20if%26nbsp%3B%22deep-sleep%22%20is%20sw%20configured%2C%20what%20is%20by%20default%3F%3CBR%20%2F%3E2.%20could%20you%20send%20me%20a%20demo%20code%20to%20explicitly%20to%20turn%26nbsp%3B%26nbsp%3Bdeep-sleep%20off%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1971656%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC546xx%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELPC54xxx%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUSB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1977314%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC54628%20usb0%20FS%20HC%20transfer%20failed%20after%20a%20USB%20connection%20inactive%20for%20a%20long%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1977314%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC54628%20operate%20as%20a%20USB%20host%3CBR%20%2F%3E%3CBR%20%2F%3E%22By%20default%2C%20it%20is%20in%20active%20mode.%22%20I%20think%20this%20is%20the%20answer%20I%20need.%20Thanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1972624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC54628%20usb0%20FS%20HC%20transfer%20failed%20after%20a%20USB%20connection%20inactive%20for%20a%20long%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1972624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F159550%22%20target%3D%22_blank%22%3E%40changlin_ren%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3ELPC54628%26nbsp%3B%20operate%20as%20a%20USB%20device%20or%20host%3F%26nbsp%3B%20By%20default%2C%20it%20is%20in%20active%20mode.%20We%20need%20to%20check%20the%20code%20to%20determine%20the%20exact%20configuration.%20How%20about%20first%20running%20a%20USB%20demo%20from%20the%20SDK%3F%20Then%20I%20can%20help%20you%20check%20it.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAlice%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1971748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPC54628%20usb0%20FS%20HC%20transfer%20failed%20after%20a%20USB%20connection%20inactive%20for%20a%20long%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1971748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Erewrite%20the%20issue%3A%3CBR%20%2F%3EThe%20issue%20is%20when%20a%20USB%20connection%20inactive%20for%20a%20long%20time%20period%2C%20the%20first%20usb%20transfer%20always%20failed%20(kStatus_USB_TransferFailed).%3CBR%20%2F%3EAfter%20usb%20reset%2C%20communication%20recovered%3C%2FLINGO-BODY%3E