Go Down

Topic: Leonardo as ISP (Read 896 times) previous topic - next topic

spycatcher2k

Jan 04, 2013, 11:45 pm Last Edit: Jan 08, 2013, 11:56 pm by spycatcher2k Reason: 1
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.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

DirtBiker

Dirt Biker

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy