I think I’m pretty close to the correct config. I’m not finding information on what setting is required to program via USB using the “Programming as ISP” approach. I’m using an Arduino Uno with a shield I made that I’ve been programming successfully with the Arduino IDE, but I’m trying to migrate all my IDE needs to PlatformIO, but programming ATTiny chips has proven to be difficult with a high learning curve. Thanks for the help!
This is the error I’m getting:
avrdude: ser_open(): can’t open device “usb”: The system cannot find the file specified.
Here’s my config:
;PlatformIO Project Configuration File
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
; Please visit documentation for the other options and examples
[env:attiny85env] platform = atmelavr board = attiny85 framework = arduino upload_protocol = stk500v1 ; each flag in a new line upload_flags = ;-P$UPLOAD_PORT -Pusb -b$UPLOAD_SPEED ; edit these lines ;upload_port = SERIAL_PORT_HERE upload_speed = 19200