I’m trying to set up VSC/PIO as workbench for my projects, but get stuck with a very basic problem.
Basic testing with an Arduino Uno board by uploading a simple blink is working via USB with bootloader.
But when I use a programmer AVRISP mkII or Atmel ICE it seems the devices are not recognized (see the message below). Same setup with Arduino IDE is working.
Not luck using upload_command in platform.ini. Changed USB driver (Zadig) for the programmer for testing, tried a complete new istallation. All without success.
The most weird: PIO commandline works (c:\progs\ArduinoIDE\arduino-1.8.9\hardware\tools\avr\bin\avrdude -Cc:\progs\ArduinoIDE\arduino-1.8.9\hardware\tools\avr\etc\avrdude.conf -v -patmega328p -cstk500v2 -Pusb -Uflash:w:c:\Users\thomas\Documents\PlatformIO\Projects\LED8-RGB.pio\build\uno\firmware.elf)
Configuring upload protocol…
CURRENT: upload_protocol = stk500v2
Looking for upload port…
Error: Please specify
upload_port for environment or use global
For some development platforms it can be a USB flash drive (i.e. /media//)
*** [upload] Explicit exit, status 1