Should we increase shared handler count if using stdusb? #2732

Closed
opened 2025-11-27 09:05:24 -06:00 by peterharperuk · 2 comments
peterharperuk commented 2025-11-27 09:05:24 -06:00 (Migrated from github.com)

I just hit this assertion and couldn't immediately understand why.

ssertion "irq_handler_chain_free_slot_head >= 0"

We should add a comment to the code that the number of shared handlers is > PICO_MAX_SHARED_IRQ_HANDLERS

But the reason I suddenly hit the problem was that I used a program which enabled stdusb which uses 2 shared handlers and my code tries to use 3 shared handlers.

Should we increase PICO_MAX_SHARED_IRQ_HANDLERS if we link to stdusb?
Generally 4 seems a bit stingy to me - especially if you have a RP2350B?

What do you think @kilograham ?

I just hit this assertion and couldn't immediately understand why. ssertion "irq_handler_chain_free_slot_head >= 0" We should add a comment to the code that the number of shared handlers is > PICO_MAX_SHARED_IRQ_HANDLERS But the reason I suddenly hit the problem was that I used a program which enabled stdusb which uses 2 shared handlers and my code tries to use 3 shared handlers. Should we increase PICO_MAX_SHARED_IRQ_HANDLERS if we link to stdusb? Generally 4 seems a bit stingy to me - especially if you have a RP2350B? What do you think @kilograham ?
kilograham commented 2026-06-22 08:50:12 -05:00 (Migrated from github.com)

yeah, lets up the handlers for stdio USB (and maybe add a few more on RP2350)

yeah, lets up the handlers for stdio USB (and maybe add a few more on RP2350)
kilograham commented 2026-06-29 17:31:17 -05:00 (Migrated from github.com)

merged into develop (we add +2 when using stdio_usb)

merged into develop (we add +2 when using stdio_usb)
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#2732
No description provided.