Upload Sketch using ISP - Is possible ?

KirAsh4:
You are not uploading the sketch to the Uno, so that specific size constraints does not apply.

As retro pointed out:

  • Did you Select Uno as the target board? (Tools -> Board)
  • Did you select the correct serial port for the Uno board? (Tools -> Serial Port)
  • Did you upload the ArduinoISP sketch to your Uno? (File -> Upload)
  • Did you then wire the Mega up for ISP communications with the Uno?
  • Did you then select "Arduino as ISP" as the programmer? (Tools -> Programmer)
  • Did you then select Mega as the target board? (Tools -> Board)
  • Did you then select "Upload using Programmer"? (File -> Upload using Programmer)

Failing to do any of those steps will result in any number of failures.

Has this changed in the 5+ years since it was posted?

I want to load a sketch on a ATMega328P. I first burnt a bootloader to the target AVR using one of the Chinese AVR ISP boards and it worked. Now I would like to burn a sketch to that same target chip.

I am using a Uno as the master for the AVR ISP board. It seems almost counter productive to have to first burn the sketch to the master (UNO) board before I can upload that same sketch to the target chip in the programmer.

This thread seems to tell me that I can do it but I first must upload the sketch to the master (which I really would prefer not to do if I do not have to) then upload the sketch to the target with "Sketch" in the IDE set to "Upload using Programmer" option "Tools" and "Board" set to Arduino Uno and "Tools" "Programmer" set to "Arduino as ISP"
and with that it seems like I should just be able to select "Sketch" and "Upload" but if I am reading this right even if that is successful then it erases my bootloader which I then have to reupload to that target chip?

I am missing something here.

Thank you for your help.