Skip to content

Disconnecting a device freezes sometimes #148

@jfedor2

Description

@jfedor2

I noticed that disconnecting a USB device from a Pico acting as a host sometimes causes the code to freeze.

It doesn't happen every time, but maybe like 1 in 10, often enough to notice.

I have bisected the issue down to this commit: 30283a9

The freeze seems to be happening around here:

while ((pp->pio_usb_rx->irq & IRQ_RX_COMP_MASK) == 0) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions