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

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
Filip_KONAX
Posts: 16
Joined: Wed Jun 08, 2022 1:05 pm

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

Post by Filip_KONAX » Fri Jun 17, 2022 5:57 am

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?

tepalia02
Posts: 99
Joined: Mon Mar 21, 2022 5:13 am

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

Post by tepalia02 » Thu Jul 14, 2022 7:03 am

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?

Post Reply