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/<user>/<device

AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port…
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
====================================================== [FAILED] Took 5.18 seconds ======================================================

  • The terminal process “C:\Users\dell.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘upload’” terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

If you are working with an Arduino board, make sure the USB-to-serial chip driver is installed, like the FTDI driver, or CH340, …