The programmer we are going to use in this tutorial is the AVRISP, which can be purchased at cutedigi. We wire an Arduino Uno to a ZIF socket with Atmega320 removed.
First, we need to download the Atmel Studio from here.
Second, install the Arduino IDE. The Arduino IDE can be downloaded from this location. The version we installed is Arduino 1.6. The bootloader is located in the following directory:
One pitfall we found is that the AVRISP’s COM port cannot be larger than COM8. Please make sure we configure the COM port of AVRISP to be somewhere between COM1 and COM8.