Go Down

Topic: Pickit 2 with the ATMega (Read 5498 times) previous topic - next topic

chuff014

Can I use it to program the chip on an Arduino board with the FTDI interface?

CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Nick Gammon

An ICSP programmer device for the MicroChip range of processors.

I think the simple answer is: No.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

dhenry

Quote
Can I use it to program the chip on an Arduino board with the FTDI interface?


Yes, you can.

Nick Gammon

Hmm. It looks like the PicKit has got a UART mode, so with the right connections it may work. I haven't tested it. Which Arduino board do you have? Why not just use the USB interface?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

chuff014


Hmm. It looks like the PicKit has got a UART mode, so with the right connections it may work. I haven't tested it. Which Arduino board do you have? Why not just use the USB interface?


I want to use a pair of barebones arduinos in my project, to cut costs. I just wanted to know if I can use my existing programmer, or if I'd have to buy a programmer.

Nick Gammon

Right, then we have to get the terminology right. Will these barebones boards have a bootloader on them? If not, the FTDI interface won't put it there. You need an ICSP programmer (one that uses the SPI interface) and I strongly doubt that the Pic Kit will do that. Its interface will be for PIC chips.

To save costs, if you have at least one Arduino already you can use that as an ICSP programmer. Search for "Arduino as ISP". I wrote a sketch that lets you put code onto SD cards and program bare baords, as described here:

http://www.gammon.com.au/forum/?id=11638

Example in use:



However you can get cheap ISP programmers.  eg. This one for $20:

http://www.pololu.com/catalog/product/1300

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

dhenry

Quote
I want to use a pair of barebones arduinos in my project, to cut costs.


A standalone programmer for the price of a cup of latte.

Quote
I just wanted to know if I can use my existing programmer, or if I'd have to buy a programmer.


Yes you can. But standalone programmer for avr is easier.

chuff014

So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?
I do have a couple of unburnt ATMegas in transit.

I can use the Pickit 2 to flash in place, but not to burn.

fungus


So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?
I do have a couple of unburnt ATMegas in transit.


Yes. You can also use it to program ATtiny chips like the ATtiny84 and ATtiny85, etc. Make really small devices.

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

dhenry

Quote
So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?


Yes. Better yet, $5 avr programmers can do that too.

chuff014

Where's a $5 AVR programmer?

pito

http://www.ebay.com/sch/i.html;jsessionid=B963627E40ECEEA2581357A48E3273E6?_sacat=0&_from=R40&_nkw=usbasp&_nkwusc=uspasp&_rdc=1

oric_dan

Quote
Yes, you can.


Maybe in a parallel universe, ie programming a PIC. [would be nice if "just once" there was some
explanation attached to those comments, so we wouldn't have to be mind readers all the time].

I have PICKIT2 and PICKIT3 and actually do most of my programming on PICs. The PICKITs and PICs in
general use completely different programming algorithms from AVR, and have 3 output pins, Mclr/Vpp
[typically 13V for programming], plus SCLK and SDA lines, which are not Sclk, MOSI, MISO.

Also, I've used the UART mode of the PICKIT and it really doesn't work all that well for some reason,but
maybe could be jiggered for downloading sketches to an Arduino bootloader [which is unnecessary in any
case], but doubtful for recoding a raw AVR. Better to use an FTDI Friend/etc on a board without a USB
chip.

I also bought one of the AVR programming dongles from Pololu, but never could get it installed properly on
my notebook, so to burn bootloaders, I use 2 Arduino boards connected via the ICSP headers, and run the
bootloader sketch from the IDE on the master board.







westfw

http://dangerousprototypes.com/2010/04/07/program-your-avr-with-pickit2/

the owner seems to have disappeared, though.

Go Up