ICSP to upload a sketch

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
platypus
 
Posts: 45
Joined: Thu Jan 19, 2012 1:47 am

ICSP to upload a sketch

Post by platypus »

Has anyone found a way to upload a sketch to a 328 (Uno) using ICSP?
What is required to do it?

User avatar
jasonwebb
 
Posts: 111
Joined: Sat Sep 10, 2011 2:15 pm

Re: ICSP to upload a sketch

Post by jasonwebb »

Are you trying to program a standalone ATMEGA328P IC? If so, you can easily use another Arduino to program the chip, as outlined by the Arduino website here: http://arduino.cc/en/Tutorial/ArduinoISP and http://arduino.cc/en/Tutorial/ArduinoToBreadboard

If you do not have an Arduino, you can use a USBTiny (https://www.adafruit.com/products/46) to program chips set up to use ICSP using the instructions found here: http://www.ladyada.net/make/usbtinyisp/

User avatar
platypus
 
Posts: 45
Joined: Thu Jan 19, 2012 1:47 am

Re: ICSP to upload a sketch

Post by platypus »

Thanks zenwebb. I just found the usbtiny programmer kit and read the instructions.

The Arduino link that you gave seems to only burn the bootloader, however I just need to load a sketch - onto many 328's. The 328 I am using is called an Eleven - an UNO look alike, but made by an Australian company, Freetronics. I have a couple of these for prototyping.

Am hoping that the Usbtiny programmer will allow me to upload a sketch as it says. My target AVR's will eventually be mounted as part of a controller so I need to bring an ICSP lead from the AVR for ease of connection in the event of field reprogramming being necessary.

But the initial plan is to upload the same sketch onto many AVR's on the bench.

Of course the USB can't be used as this is impractical with so many uploads to be done.

it looks as if I can use the USBtiny programmer to upload a sketch direct via ICSP.

User avatar
platypus
 
Posts: 45
Joined: Thu Jan 19, 2012 1:47 am

Re: ICSP to upload a sketch

Post by platypus »

It's is not clear from the kit documentation, but does the USBtinyISP use the PC's USB as a hardware interface. Using a laptop - usb only!

User avatar
floresta
 
Posts: 223
Joined: Thu Jul 31, 2008 10:27 am

Re: ICSP to upload a sketch

Post by floresta »

platypus wrote:It's is not clear from the kit documentation, but does the USBtinyISP use the PC's USB as a hardware interface. Using a laptop - usb only!
What is not clear? The term USB appears six times in the introduction alone.

Don

User avatar
platypus
 
Posts: 45
Joined: Thu Jan 19, 2012 1:47 am

Re: ICSP to upload a sketch

Post by platypus »

Many thanks - all the best.

User avatar
adamhi
 
Posts: 18
Joined: Wed Feb 16, 2011 11:10 pm

Re: ICSP to upload a sketch

Post by adamhi »

platypus wrote: The Arduino link that you gave seems to only burn the bootloader, however I just need to load a sketch - onto many 328's. . . . . . . .
Am hoping that the Usbtiny programmer will allow me to upload a sketch as it says. My target AVR's will eventually be mounted as part of a controller so I need to bring an ICSP lead from the AVR for ease of connection in the event of field reprogramming being necessary. . . . . . .But the initial plan is to upload the same sketch onto many AVR's on the bench.
. . . . . . .it looks as if I can use the USBtiny programmer to upload a sketch direct via ICSP.
Platypus - A bit long ago now - but how did it work out for you? I'm looking at similar issues and using the USBtiny.

--adam

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: ICSP to upload a sketch

Post by Franklin97355 »

I'm looking at similar issues and using the USBtiny.
Rather than posting to a 4 year old thread why not start your own thread in the correct forum HERE ?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”