Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RP2040 assertion "hw_data_offset(next_buffer_ptr) <= USB_DPRAM_MAX" failed #2352

Open
1 task done
fbeser opened this issue Nov 28, 2023 · 0 comments
Open
1 task done
Labels

Comments

@fbeser
Copy link

fbeser commented Nov 28, 2023

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

  • I confirm I have checked existing issues, dicussion and documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant