Unable to find "Upload using programmer" in project task

Hello, I have arduino nano328 loaded with arduinoISP program. I want to program atmega2560 using arduino nano as isp programmer in PlatformIO(VSCode). Can anyone suggest configurations for .ini file.

The docs (here) have the settings you would need to add to your platformio.ini file to use “Arduino as ISP” to program.

Scroll down to the correct set of options, obviously! :wink:

Cheers,
Norm.

Thank you Norman. I did added following in .ini file and it worked.

[env:program_via_ArduinoISP]
platform = atmelavr
framework = arduino
board = megaatmega2560
upload_protocol = custom
upload_port = COM4
upload_speed = 19200
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
1 Like