Go Down

Topic: AVR ISP mkII Help, please (Read 1 time) previous topic - next topic

dc42

You can write your sketch using the Arduino IDE and then upload it to your chip using the "Upload using programmer" menu option. You need to download an extra driver to use the AVRISPmkII with the Arduino IDE (sorry, I can't remember where I downloaded mine from).

A virgin atmega328p will have the clock set to the internal 8MHz oscillator with a prescaler of 8 (so 1MHz clock frequency). To use anything different, you will need to program the low fuse byte. The easiest way to do this is to use AVR Studio and your AVRISP. Two warnings:

1. Be very careful with the high fuse byte, one of the bits in it will DISABLE future programming via ICSP if you get it wrong.

2. Once you set the low fuse byte to use a crystal, you can't then program the chip unless you have the crystal in place or you apply an external clock signal.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

fungus


You can write your sketch using the Arduino IDE and then upload it to your chip using the "Upload using programmer" menu option. You need to download an extra driver to use the AVRISPmkII with the Arduino IDE (sorry, I can't remember where I downloaded mine from).


Arduino 1.0.1 has AVRISPmkII support as standard...

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

dc42


Arduino 1.0.1 has AVRISPmkII support as standard...


Yes, but I still had to find a USB driver for the AVRISPmkII. The one that was installed with AVR Studio wasn't recognised by the Arduino IDE. [EDIT: unless I was still on 1.0 when my AVRISP arrived...]
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

fungus



Arduino 1.0.1 has AVRISPmkII support as standard...


Yes, but I still had to find a USB driver for the AVRISPmkII. The one that was installed with AVR Studio wasn't recognised by the Arduino IDE. [EDIT: unless I was still on 1.0 when my AVRISP arrived...]


Oh, yeah, you need a USB driver for Windows (or Linux/Mac/whatever).
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

chays

Thank you, everyone! That will get me going, I think.

ch
Dr. Charles Hays
"But he's not the kind of doctor that does anybody any good." -- Mom

Go Up