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

UAC example crashes after adding a HID/CDC interface #1911

Closed
1 task done
arun-511 opened this issue Feb 16, 2023 · 0 comments
Closed
1 task done

UAC example crashes after adding a HID/CDC interface #1911

arun-511 opened this issue Feb 16, 2023 · 0 comments
Labels

Comments

@arun-511
Copy link

arun-511 commented Feb 16, 2023

Operating System

Others

Board

Raspberry Pi Pico

Firmware

examples/device/uac2_headset with HID class from examples/device/hid_multiple_interface

What happened ?

Adding a HID or CDC class with the UAC2 example causes it to panic on Android Host. On Windows, the same thing occurs after an uncertain number of play and pauses. Setting CFG_TUSB_DEBUG=2 makes it panic on plugging in. Log and gdb indicates assertion "hw_data_offset(next_buffer_ptr) <= USB_DPRAM_MAX" failed: file "...RP2040\lib\tinyusb\src\portable\raspberrypi\rp2040\dcd_rp2040.c", line 86, function: _hw_endpoint_alloc

How to reproduce ?

HID interface is added after the UAC Interface in desc_configuration
TUD_HID_DESC_LEN is added to CONFIG_TOTAL_LEN
ITF_NUM_HID is added in enum after ITF_NUM_HID
HID endpoint EPNUM_HID=0x84
All HID callbacks are added from examples/device/hid_multiple_interface with proper modifications.

Plugging the USB to an Android host cases it to panic immediately.

Debug Log as txt file

LOG: log.txt
GDB backtrace output: gdb-output.txt

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
@arun-511 arun-511 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2023
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