Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

General • Re: serial port flip-flopping on Linux.

$
0
0
I also saw the flip-flopping, got annoyed and solved it like this: when I want the log over USB, I start a Bash script saying:

Code:

while (true)domicrocom --speed=115200 --port=/dev/ttyACM0 2>/dev/nulldone
Basically, my microcom process dies and restarts until the Pico settles on ttyACM0. I try to throw the standard error stream away, but it doesn't go away very well. But the logging works for me because the Pico always comes back to port 0 somehow.

Then, in another window, I can use "openocd" to do:

Code:

openocd -f ./openocd-interface.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program build/hello.elf verify reset exit"

Statistics: Posted by diastrikos — Tue Aug 20, 2024 11:09 pm



Viewing all articles
Browse latest Browse all 3873

Trending Articles