Page 1 of 1

Print and Ctrl-C stops being responsive - USB in timeout

Posted: Fri Jun 17, 2022 5:57 am
by Filip_KONAX
I have a project using an RPi PICO that uses the hardware UART to connect to a modem. I need to communicate a lot using the uart, e.g. during the setup phase. In order to be able to follow this setup, I'm printing to the terminal (standard REPL over CDC-USB UART) and I also keep a log in a file. I see that the config continues in the logfile, but sometimes, not always/not always at the same point, printing stops. If that happens, the USB connection has a timeout. Can't break anymore too. Happens in Thonny and in PuTTy.
I've added extra sleep, helps a bit but not enough/always. Is there a better way to do this? What can I do to prevent the serial USB port to go in timeout?

Re: Print and Ctrl-C stops being responsive - USB in timeout

Posted: Thu Jul 14, 2022 7:03 am
by tepalia02
Do you see any messages when your system stops? Like "Device is Busy - can't perform this action now.
Please wait or cancel current work and try again!" or anything like this?