diff --git a/README.md b/README.md index e8a4ba8..430a2da 100644 --- a/README.md +++ b/README.md @@ -6,38 +6,38 @@ Programming notes: I'm using the Arduino 1.5.7 build, but I'm not sure if that matters. 1. In the Arduino IDE, under Tools, set your settings to: - +``` Board: Arduino Nano
Processor: ATMega328
Programmers: AVRISP mk2 (yours may differ) +``` +2. Under `File`/`Preferences`, turn on verbose output during compilation. -2. Under File/Preferences, turn on verbose output during compilation. - -3. Load the code and click the checkbox to Verify/Compile without uploading. - -4. Compile the code. Look in the verbose output, near the bottom, for the location of the .elf file that was generated. My line looks like this: +3. Load the code and click the checkbox to `Verify`/`Compile` without uploading. - C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\Bret\AppData\Local\Temp\build2617538330943428195.tmp/MetaSequencer.cpp.elf - - The location and filename of the .elf file will stay the same until you restart the Arduino IDE. So be careful, in the future, not to accidentally use an outdated .elf file, otherwise you'll think to yourself, "What the heck is going on?" +4. Compile the code. Look in the verbose output, near the bottom, for the location of the `.elf` file that was generated. My line looks like this: +``` +C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\Bret\AppData\Local\Temp\build2617538330943428195.tmp/MetaSequencer.cpp.elf +``` +The location and filename of the `.elf` file will stay the same until you restart the Arduino IDE. So be careful, in the future, not to accidentally use an outdated `.elf` file, otherwise you'll think to yourself, "What the heck is going on?" 5. Connect your programmer and power up the unit. If you're using the AVRISP mk2, the stripe should be on the bottom. 6. Download and open up Atmel Studio. I'm using 6.2. I'm sure that any version after 6.2 will work. -7. In Atmel Studio, under the Tools menu, select Device Programming +7. In Atmel Studio, under the `Tools` menu, select `Device Programming` 8. If the device is connected, Atmel Studio will automatically recognize it. Mine says: - +``` Tool: AVRISP mkII
Device: ATmega328
Interface ISP.
+``` +Press the `Apply` button. - Press the Apply button. - -9. On the left menu that appears, select "Memories" +9. On the left menu that appears, select `Memories` -10. Under the Flash section, browse for the .elf file and click Program. +10. Under the `Flash` section, browse for the `.elf` file and click `Program`. That should do it!