Making Hex File using AVR Studio

1

Make a folder on the desktop and named "Development System".

2

Select the option "New Project".

3

Select the location of the "Development System" folder on the desktop.

4

Select the Options shown in the diagram.

5

Paste the code in the "Code Window" as shown.

6

In the "Build" menu, choose the "Build" option. The software should generate the files, then exit AVR Studio, and save everything.

7

Navigate to the "Development System" folder on the "Desktop". Inside that folder there should be a folder named "LEDtest". Inside that folder, there should be another folder named "Default". Inside that folder there should be a file named "LEDtest.hex". That is the hex file required by PonyProg2000 to flash the microcontroller. I usually copy it onto the desktop so that I can find it fast and load it into PonyProg2000 when required. Here are my LEDtest.c and LEDtest.hex files, if it helps.