SDK 2.1.0 tinyusb panics on composite usb audio and cdc acm device #2236

Open
opened 2025-02-04 16:08:55 -06:00 by not1337 · 11 comments
not1337 commented 2025-02-04 16:08:55 -06:00 (Migrated from github.com)

The tinyusb version pulled by SDK 2.1.0 is missing a fix causing panic when using a composite usb device (audio and cdc/acm). The problem seems to be well known and fixed in current versions of tinyusb. See: https://github.com/hathach/tinyusb/pull/1802
A future SDK release needs an updated version of tinyusb.

As a temporary fix for everyone affected, replace the dcd_rp2040.c of the pulled tinyusb library with:

https://raw.githubusercontent.com/howard0su/tinyusb/cd7ee9639ee5ceddcdaecde5842c2ce97a56ce63/src/portable/raspberrypi/rp2040/dcd_rp2040.c

The above fixes the problem for me and the link is included for convenience to reduce search time for everyone affected.

The tinyusb version pulled by SDK 2.1.0 is missing a fix causing panic when using a composite usb device (audio and cdc/acm). The problem seems to be well known and fixed in current versions of tinyusb. See: https://github.com/hathach/tinyusb/pull/1802 A future SDK release needs an updated version of tinyusb. As a temporary fix for everyone affected, replace the dcd_rp2040.c of the pulled tinyusb library with: https://raw.githubusercontent.com/howard0su/tinyusb/cd7ee9639ee5ceddcdaecde5842c2ce97a56ce63/src/portable/raspberrypi/rp2040/dcd_rp2040.c The above fixes the problem for me and the link is included for convenience to reduce search time for everyone affected.
kilograham commented 2025-02-04 16:32:00 -06:00 (Migrated from github.com)

Note that we don't want that particular fix, but we want the change that is being made in TinyUSB upstream (which may or may not be this one https://github.com/hathach/tinyusb/pull/2937 )

Note that we don't want that particular fix, but we want the change that is being made in TinyUSB upstream (which may or may not be this one https://github.com/hathach/tinyusb/pull/2937 )
kilograham commented 2025-02-04 16:32:44 -06:00 (Migrated from github.com)

OP: is this a regression from earlier SDK, or was that also broken due to TinyUSB/rp2040 issues?

OP: is this a regression from earlier SDK, or was that also broken due to TinyUSB/rp2040 issues?
not1337 commented 2025-02-05 02:51:20 -06:00 (Migrated from github.com)

Sorry, don't know. SDK 2.1.0 is the first version I'm using and I never used rp2040, only rp2350.

Sorry, don't know. SDK 2.1.0 is the first version I'm using and I never used rp2040, only rp2350.
Slion commented 2025-02-14 03:17:59 -06:00 (Migrated from github.com)

Is this bug specific to rp2040 or does it affect rp2350 too?

Is this bug specific to rp2040 or does it affect rp2350 too?
not1337 commented 2025-02-14 06:05:34 -06:00 (Migrated from github.com)

In my case rp2350a, I don't have any rp2040.

In my case rp2350a, I don't have any rp2040.
liamfraser commented 2025-07-21 10:12:38 -05:00 (Migrated from github.com)

@not1337 this should be fixed in the latest version of the SDK (2.1.1) as we now run TinyUSB 0.18.0, which contains this fix here https://github.com/hathach/tinyusb/pull/2847 - can you confirm this works?

@not1337 this should be fixed in the latest version of the SDK (2.1.1) as we now run TinyUSB 0.18.0, which contains this fix here https://github.com/hathach/tinyusb/pull/2847 - can you confirm this works?
mryndzionek commented 2025-07-29 08:04:44 -05:00 (Migrated from github.com)

@not1337 this should be fixed in the latest version of the SDK (2.1.1) as we now run TinyUSB 0.18.0, which contains this fix here hathach/tinyusb#2847 - can you confirm this works?

The issue is still there on 0.18.0. At least one more PR is missing: https://github.com/hathach/tinyusb/pull/2937

> [@not1337](https://github.com/not1337) this should be fixed in the latest version of the SDK (2.1.1) as we now run TinyUSB 0.18.0, which contains this fix here [hathach/tinyusb#2847](https://github.com/hathach/tinyusb/pull/2847) - can you confirm this works? The issue is still there on `0.18.0`. At least one more PR is missing: https://github.com/hathach/tinyusb/pull/2937
not1337 commented 2025-07-29 10:44:11 -05:00 (Migrated from github.com)

Unfortunately I can't test in the next few months as I'm busy with my job.

Unfortunately I can't test in the next few months as I'm busy with my job.
SomeRandomName99 commented 2025-08-28 14:46:41 -05:00 (Migrated from github.com)

Hello, I have the same issue when when using the audio_test example on an RP2350 using SDK version 2.2.0.

Edit: Can confirm that https://github.com/hathach/tinyusb/pull/2937 fixes the problem.

Hello, I have the same issue when when using the audio_test example on an RP2350 using SDK version 2.2.0. Edit: Can confirm that https://github.com/hathach/tinyusb/pull/2937 fixes the problem.
AshleighTheCutie commented 2026-04-05 20:07:25 -05:00 (Migrated from github.com)

Note this is still happening on the current latest SDK (2.2.0)

Note this is still happening on the current latest SDK (2.2.0)
zackorndorff commented 2026-05-03 00:38:10 -05:00 (Migrated from github.com)

I also ran into this issue on SDK version 2.2.0. After reading GitHub issues about the problem, I decided to try applying the fix from https://github.com/hathach/tinyusb/pull/2937 as suggested above.

To save someone else time, I used the following commands:

cd $PICO_SDK_PATH/lib/tinyusb
git fetch --unshallow
git cherry-pick 334ac80 -m 1
I also ran into this issue on SDK version 2.2.0. After reading GitHub issues about the problem, I decided to try applying the fix from https://github.com/hathach/tinyusb/pull/2937 as suggested above. To save someone else time, I used the following commands: ```bash cd $PICO_SDK_PATH/lib/tinyusb git fetch --unshallow git cherry-pick 334ac80 -m 1 ```
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#2236
No description provided.