Can't upload with Arduino ISP programmer (community tip don't help)

With this ini config:

[env:nanoatmega328]
platform = atmelavr
board = pro16MHzatmega328
framework = arduino
upload_protocol = arduinoisp

trying to Upload using Programmer I get the following error:
avrdude: Error: Could not find USBtiny device (0x2341/0x49)
If I try simple Upload I get avrdude: Error: Invalid -P value: '/dev/cu.usbserial-1420'

The problem is within PlatformIO because Arduino IDE works like a charm.
macOS Catalina 10.15.3, Platformio core 4.3.4, home 3.2.3

Tried all tips from this thread: Can the Arduino ISP board be used with PlatformIO? - #33 by pfeerick

1 Like

Are you using the Arduino as ISP sketch, or the ArduinoISP, as the ArduinoISP is an actual device that was made, and has the same name as the sketch… just to confuse people even more! :confused:

It’s possible you want the relevant bits from the Arduino as ISP docs example:

[env:myenv]
platform = atmelavr
framework = arduino
upload_protocol = stk500v1
; each flag in a new line
upload_flags =
    -P$UPLOAD_PORT
    -b$UPLOAD_SPEED

; edit these lines
upload_port = SERIAL_PORT_HERE
upload_speed = 19200

True, thank you! So stupid mistake because of similar names

1 Like

So is that working for you now?

Yes, your config works

1 Like