tinyvision-ai-inc / pico-ice-sdk

Firmware and software support for the pico-ice board
MIT License
43 stars 13 forks source link

USB hangs if receiving UART stream over 10kB/s #53

Open MrJake222 opened 2 months ago

MrJake222 commented 2 months ago

I don't know the details yet, but it spams error -71 in dmesg. Will investigate with picoprobe later.

MrJake222 commented 2 months ago

The bug is related to UART incoming characters interrupts flushing the input while the mutex is locked by some other function (particularly by another flush).

Stacktrace screenshot from when the adapter becomes unresponsive:

image

josuah commented 2 weeks ago

Thank you for tracing this down! Indeed, since the OSAL calls a mutex through the RP2040, this cannot be used in IRQ. I will discuss on the draft pull request.