Go Down

Topic: Using Arduino IDE with avrispmkii and ICSP (Read 1 time) previous topic - next topic

eraticus

Dear Experts,

I am attempting to program the Arduino Uno v2 via the ICSP header and a AVR ISP MK II external programmer. However, after making this change to my Arduino/preferences.txt file

upload.using=bootloader

becomes

upload.using=avrispmkii

The Arduino IDE is still asking me for a serial port, and then reporting that whichever one I choose is busy. There are no TX/RX lights flashing, and the arduino board is not programmed.

I am sure that this is something simple, since it seems that programming Arduinos with external programmers is not too unusual. However, I cannot seem to get it done. Are there any tips, tricks, etc. That I need to know? Common mistakes, or ways to debug this method?

My setup is as follows:

OS X Lion on a MacBook Air
ATMEL AVRISP mkII
Arduino IDE version 1.0
Arduino Uno v2

Sincerely,

Eraticus

qwertysimo

There is no need to modify anything in IDE 1.0. Just
- connect your AVRISP mkII six-pin header to Uno,
- set Tools - Board - Uno,
- set Tools - Programmer - AVRISP mkII,
- make sure Uno has power.

You must upload using File - Upload using programmer instead of File - Upload.

eraticus

qwertysimo,

Perfect!

Thank you for your help!!


kevinp


There is no need to modify anything in IDE 1.0. Just
- connect your AVRISP mkII six-pin header to Uno,
- set Tools - Board - Uno,
- set Tools - Programmer - AVRISP mkII,
- make sure Uno has power.

You must upload using File - Upload using programmer instead of File - Upload.


Just read in the help files that <shift>while clicking upload will upload using the programmer.  Looked a long time in the forums to figure out how to upload using my avrispmkii.
To communicate with the USB on Ubuntu I need to run arduino from the terminal using sudo.  I don't care if there is a an easier way by changing the rules, every attempt I made doing that failed, it is easier to just run as sudo.

Kevin

Hi Eraticus, also note that holding down the shift key while clicking the upload icon (not the menubar) will command an 'upload with programmer' - I don't think upload.using is being used (or is not working) anymore.

Runaway Pancake

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"


Go Up