Arduino Mega2560 can't be programmed via USB

Hello everyone!

I have just solved the programming issue thanks to this thread and want to share the experience.
Google does not have exact steps for the solution so I have decided to continue this conversation

In all "out of the box" arduino IDE I had the following error messages for Mega2560 board

Can't find programmer id "wiring"

But thanks to clever people above, I have found what to do.

  1. Open boards.txt and find
    mega2560.upload.protocol=wiring

  2. Replace this string with
    mega2560.upload.protocol=stk500v2

  3. Save the file and restart IDE

  4. In main menu Tools->Programmer please change AVR ISP MKII to AVR ISP

  5. Program your sketches fellas!!!

1 Like