Pages: [1]   Go Down
Author Topic: Using Arduino IDE with avrispmkii and ICSP  (Read 1576 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

qwertysimo,

Perfect!

Thank you for your help!!

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Faraday Member
**
Karma: 65
Posts: 2504
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

qwertysimo

 smiley-lol  I must remember that!
Logged

"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?"

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

qwertysimo

 smiley-lol  I must remember that!

Logged

Pages: [1]   Go Up
Jump to: