Using Arduino IDE with avrispmkii and ICSP

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

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.

qwertysimo,

Perfect!

Thank you for your help!!

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.

Just read in the help files that 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.

eraticus:
qwertysimo

XD I must remember that!