Continuing the discussion from PlatformIO in VS Code running on Linux Debian - access to /dev/ttyUSB0 - port doesn't exist:
I use the command line “pio run --target upload”, on an up-to-date native boot Ubuntu 22.04 laptop, no virtual machine.
Sometimes linux cannot find the serial port. Most of the time it works just fine. However, if it can’t find the serial port, I need to program a difference device, then the desired target’s serial port works too. It works perfectly for a period of time, then mysteriously stops working. Again, programming a different target fixes the problem, for a while.