Define "Upload port" when running in Snap

How can I specify / allow access to serial ports for firmware flashing on Linux / ruuning in Snap ?
I see:
“Error: Please specify upload_port for environment or use global --upload-port option.
For some development platforms it can be a USB flash drive (i.e. /media//)
*** [upload] Explicit exit, status 1”

Isn’t there a place in the app where it can be specified without restarting the VSCode?

You would add it to the platformio.ini file created in your project folder. Add it and recompile/upload.

HTH

Cheers,
Norm.

Running in snap container is like running in a prison, I’ve seen other posts here where that was the main problem. If it doesn’t work after specifying it as @normandunbar says (docs), install VSCode directly as a .deb or whatever package.

1 Like