hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
5.07k stars 1.06k forks source link

USB_EVT_READY stuck forever #2387

Open gb88 opened 10 months ago

gb88 commented 10 months ago

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

ilgalga commented 3 weeks ago

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

gb88 commented 3 weeks ago

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

ilgalga commented 3 weeks ago

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.