RP2040 assertion "hw_data_offset(next_buffer_ptr) <= USB_DPRAM_MAX" failed
Operating System
Windows 11
Board
Raspberry Pi Pico
Firmware
/tree/examples/device/uac2_headset
What happened ?
Actually, there is no problem with direct connection. However, when the computer stops making sound, it close the EP after a certain period of time. When I play the sound again, I get the error "hw_data_offset(next_buffer_ptr) <= USB_DPRAM_MAX". I can create this by simply pressing and waiting on the button used for windows to test audio devices.
How to reproduce ?
...
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
USBD Setup Received 01 0B 00 00 01 00 00 00 Set Interface AUDIO control request Set itf: 1 - alt: 0 CLOSING Endpoint: 0x01 Set interface 1 alt 0 report = 0, interface = 1, resolution = 24, 0 Queue EP 80 with 0 bytes ... USBD Xfer Complete on EP 80 with 0 bytes
USBD Setup Received A1 01 01 02 00 02 02 00 AUDIO control request Get channel 1 volume 0 dB Queue EP 80 with 2 bytes ... USBD Xfer Complete on EP 80 with 2 bytes AUDIO control complete Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes
USBD Setup Received A1 01 01 01 00 02 01 00 AUDIO control request Get channel 1 mute 0 Queue EP 80 with 1 bytes ... USBD Xfer Complete on EP 80 with 1 bytes AUDIO control complete Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes
USBD Setup Received A1 01 01 02 00 02 02 00 AUDIO control request Get channel 1 volume 0 dB Queue EP 80 with 2 bytes ... USBD Xfer Complete on EP 80 with 2 bytes AUDIO control complete Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes
USBD Setup Received A1 01 01 01 00 02 01 00 AUDIO control request Get channel 1 mute 0 Queue EP 80 with 1 bytes ... USBD Xfer Complete on EP 80 with 1 bytes AUDIO control complete Queue EP 00 with 0 bytes ... USBD Xfer Complete on EP 00 with 0 bytes
USBD Setup Received 01 0B 02 00 01 00 00 00 Set Interface AUDIO control request Set itf: 1 - alt: 2 Open EP 01 with Size = 776 assertion "hw_data_offset(next_buffer_ptr) <= USB_DPRAM_MAX" failed: file "C:\Users\fatih\work\pico\pico-sdk\lib\tinyusb\src\portable\raspberrypi\rp2040\dcd_rp2040.c", line 86, function: _hw_endpoint_alloc
Screenshots
No response
I have checked existing issues, dicussion and documentation
- [X] I confirm I have checked existing issues, dicussion and documentation.