I’m moving to platformio from arduino ide, and have difficulty to upload sketch to my attiny85 using arduino as isp (via nano). I’ve read all the discussion about this topic but still have no success.
What I did :
- Successfully upload sketch using arduino ide to attiny using nano via arduino as isp (so no problem here)
- I create new project with attiny85, so my platformio.ini content below
platform = atmelavr
board = attiny85
framework = arduino
And after some reading, i add new env :
[env:program_via_ArduinoISP] platform = atmelavr framework = arduino board = attiny85 upload_protocol = stk500v1 upload_port = COM4 upload_speed = 115200 upload_flags = -C $PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf -p $BOARD_MCU -P $UPLOAD_PORT -b $UPLOAD_SPEED -c stk500v1 upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
But I cannot see the button upload via isp ? And when using upload button - the error said timeout or something
What I did wrong ?
Edit : Arduino as ISP sketch already in the nano - because I tried multiple times
switching using arduino ide (work flawlessly) then using platform io - and not working