pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

stdout_serialize_begin can cause a deadlock

Open peterharperuk opened this issue 1 year ago • 1 comments

See https://github.com/georgerobotics/cyw43-driver/issues/33

peterharperuk avatar Sep 30 '22 09:09 peterharperuk

Ok, so the problem here is interaction of two different mutexes:

core 0 is doing plain getchar() which takes stdio_usb mutex but not printf mutex.

core 1 does printf that takes printf mutex, then fails to take stdio_usb_mutex

core 0 IRQ does printf, which tries to take printf mutex

kilograham avatar Sep 30 '22 13:09 kilograham

merged into develop

kilograham avatar Feb 06 '23 22:02 kilograham