• How to program your Arduino Uno with an AVRISP mkII

    How to program your Arduino Uno with an AVRISP mkII

    (For those who don't have the original board for uploading sketches)

    Have an AVRISP mkII that you want to use to program your Arduino Uno and still use the Arduino IDE? Well this post will show you how.This post assumes you have an Arduino Uno, running Windows XP, and have the latest IDE software (version 0022 as of this post).

    The main reason I wanted to go this route was because of the start up lag. The lag is used by the Arduino IDE when you program via USB. The Arduino IDE will reset your Uno which fires up the bootloader to check for a new incoming program. This half a second or so lag will always be there on start-up and I wanted to get rid of it. Another draw back is that if you have stuff connected to the pins that is used for the serial communications, you could get erroneous data as those pins are checking for incoming serial data.

    This procedure is rather simple. All you need to do is modify the boards.txt file. Boards.txt should be located in the Arduino folder. Hardware > Arduino > Boards.txt

    Add this code in there and then save it after:

    unoisp.name=Arduino Uno w/ AVR ISP MKii

    How to program your Arduino Uno with an AVRISP mkII

    Now fire up the Arduino IDE and you’ll notice a new option available under Tools > Board. It’s called Arduino Uno w/ AVR ISP MKii. That’s pretty much it! Make sure you that option selected before you hit the upload button.
    Note 1: If you have any issues with the speed and time of the programs, use the AVRISP to burn a fresh bootloader for your Arduino Uno and then try again. Burning the bootloader will set the internal fuses on the ATMEGA328 so that it works correctly on the board.

    Note 2: If you have issues with it not responding to the AVRISP then you may have issues with the driver. A driver comes with the IDE download called libusb. When trying to update the driver, it is located in the Arduino folder. Hardware > Tools > avr > utils > libusb > bin.

    Programming your Arduino with an AVRISP mkII with the new 1.0 IDE

    A while back a wrote up instructions on how to program an Arduino with an AVRISP mkII.
    Back then the current software for the Arduino IDE was set at 0022 and it required you to modify a file to get it work.
    Apparently enough people wanted a feature like that to come built into the Arduino IDE that it has now become reality. No more modifying of files.

    It’s extremely easy to do know and I’ll show you exactly how to do it, so go ahead and fire up the Arduino IDE, plug in your programmer (I’m still using an AVRISP mkII) and plug up your Arduino Uno to an external supply and to your programmer.
    First select which board you plan on using:

    How to program your Arduino Uno with an AVRISP mkII

    Next select the programmer you plan on using:

    How to program your Arduino Uno with an AVRISP mkII

    Lastly, when you are ready to upload your sketch to your Arduino, hold the the shift key when you push the upload button. You’ll notice the words change when you hover your mouser over it while hitting the shift key.

    How to program your Arduino Uno with an AVRISP mkII

    That’s it! Simple as pie. Using this method you will bypass the Arduino bootloader, freeing up some flash memory as well as avoiding the initial startup sequence that needs to be used for the tradition sketch upload.

    Here is the driver I use on my computer so that the AVRISP connects correctly and can be used by the Arduino IDE to program your board or burn the bootloader. Save it, and unzip it. It is a dll file. To use, go into the device manager and find AVRISP (not sure what it may be called in your system), and update the driver for it using the one I provided (it’s also buried in the Arduino folder). Normally its the device with the yellow exclamation symbol if it has no current driver.
    The driver I have is not digitally signed, but you should be able to navigate through the error message and force it to update.
    AVRISP mkII driver for Arduino

    © Jhon Dimo Blog

     Any other questions or problems? Leave me a comment and I’ll responds as soon as possible to help you out.


  • Commentaires

    Aucun commentaire pour le moment

    Suivre le flux RSS des commentaires

    Ajouter un commentaire

    Nom / Pseudo :

    E-mail (facultatif) :

    Site Web (facultatif) :

    Commentaire :