hathach / tinyusb

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

MCXA153 FRDM Board Test CDC+MSC A request for the USB device descriptor failed!!!! #2941

Closed vscodeenv closed 1 week ago

vscodeenv commented 1 week ago

Operating System

Windows 10

Board

MCXA153 FRDM

Firmware

image

What happened ?

image

How to reproduce ?

image image image image all code from tinyusb V0.18 mcxa153 use FIRC clock!

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

USBD init on controller 0, speed = Full sizeof(usbd_device_t) = 84 sizeof(dcd_event_t) = 12 sizeof(tu_fifo_t) = 20 sizeof(tu_edpt_stream_t) = 108 CDC init MSC init USBD Bus Reset : Full Speed

USBD Bus Reset : Full Speed

USBD Setup Received 80 06 00 01 00 00 40 00 Get Descriptor Device Queue EP 80 with 18 bytes ... USBD Xfer Complete on EP 80 with 18 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes USBD Bus Reset : Full Speed

USBD Setup Received 00 05 35 00 00 00 00 00 Set Address USBD Xfer Complete on EP 80 with 0 bytes

USBD Setup Received 80 06 00 01 00 00 12 00 Get Descriptor Device Queue EP 80 with 18 bytes ... USBD Xfer Complete on EP 80 with 18 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 00 02 00 00 FF 00 Get Descriptor Configuration[0] Queue EP 80 with 64 bytes ... USBD Xfer Complete on EP 80 with 64 bytes Queue EP 80 with 34 bytes ... USBD Xfer Complete on EP 80 with 34 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 03 03 09 04 FF 00 Get Descriptor String[3] Queue EP 80 with 34 bytes ... USBD Xfer Complete on EP 80 with 34 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 00 03 00 00 FF 00 Get Descriptor String[0] Queue EP 80 with 4 bytes ... USBD Xfer Complete on EP 80 with 4 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 02 03 09 04 FF 00 Get Descriptor String[2] Queue EP 80 with 30 bytes ... USBD Xfer Complete on EP 80 with 30 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 00 06 00 00 0A 00 Get Descriptor Device Qualifier Stall EP0

USBD Setup Received 80 06 00 01 00 00 12 00 Get Descriptor Device Queue EP 80 with 18 bytes ... USBD Xfer Complete on EP 80 with 18 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 00 02 00 00 09 00 Get Descriptor Configuration[0] Queue EP 80 with 9 bytes ... USBD Xfer Complete on EP 80 with 9 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 80 06 00 02 00 00 62 00 Get Descriptor Configuration[0] Queue EP 80 with 64 bytes ... USBD Xfer Complete on EP 80 with 64 bytes Queue EP 80 with 34 bytes ... USBD Xfer Complete on EP 80 with 34 bytes Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes

USBD Setup Received 00 09 01 00 00 00 00 00 Set Configuration Open EP 81 with Size = 8 Open EP 02 with Size = 64 Open EP 82 with Size = 64 Queue EP 02 with 64 bytes ... CDC opened

Screenshots

No response

I have checked existing issues, dicussion and documentation

vscodeenv commented 1 week ago

image The computer heard the usb insert prompt sound, after about a few seconds to hear the usb sound again, and finally the program into the hardware error interrupted

vscodeenv commented 1 week ago

image code run to TU_ASSERT(DRVID_INVALID == _usbd_dev.itf2drv[itf_num]); then hardfalt; can not run to _usbd_dev.itf2drv[itf_num] = drv_id; this is use GCC ; but use IAR has not this problem from same code

vscodeenv commented 1 week ago

my error