tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

USB_EVT_READY stuck forever

Open gb88 opened this issue 2 years ago • 3 comments

Operating System

Windows 10

Board

Custom board with nRF52840

Firmware

Any bluefruit example

What happened ?

when the board is connected to USB charger with wall adapter the program will stuck at line 1044 ( while ( !(USBD_EVENTCAUSE_READY_Msk & NRF_USBD->EVENTCAUSE) ) { }) in the file dcd_nrf5x.c

How to reproduce ?

Should happen in any board powered by USB with wall adapter where is no enumerated

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

no log available

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • [X] I confirm I have checked existing issues, dicussion and documentation.

gb88 avatar Dec 23 '23 15:12 gb88

Hello, any solution about it? I've the same problem.

ilgalga avatar Oct 20 '24 09:10 ilgalga

I solved changing this file Screenshot_2024-10-20-13-58-34-198_com.github.android-edit.jpg

gb88 avatar Oct 20 '24 11:10 gb88

Great! Thanks. My approach has been to remove the USE_TINYUSB directive with: #undef USE_TINYUSB in main.c

This because I do not need to use USB feature in my custom circuit.

ilgalga avatar Oct 20 '24 12:10 ilgalga