Pages: [1]   Go Down
Author Topic: Leonardo as ISP  (Read 633 times)
0 Members and 1 Guest are viewing this topic.
Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, I've been struggling to get my new leonardo to work as an ISP programmer. But finally found out what I was doing wrong.

1. The ICSP pins are not broken out to digital pins - Use the 6 pin header - mosi->mosi, sck->sck etc
2.1 Need to modify the Arduino as ISP sketch - find #define RESET SS, and replace SS with 10 (The reset from the TARGET connects here)
2.2 I've saved the sketch as LeonardoISP - in the Examples Directory - Easy to find (Also works with the UNO)
3. modify the programmers.txt file (its in the arduino folder-hardware-arduino, include :

leo.name=Leonardo as ISP
leo.communication=serial
leo.protocol=arduino
leo.speed=19200

at the end of the file

Upload the Arduino as ISP sketch to the leonardo
Load/Type your sketch
select the target chip type
Click 'Upload Using Programmer' or 'Burn Bootloader'

Hope this helps.

Edited to update Info.
« Last Edit: January 08, 2013, 05:56:35 pm by spycatcher2k » Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Windy City
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!
Logged

Dirt Biker

Pages: [1]   Go Up
Jump to: