Go Down

Topic: Guide: How to use an Arduino as an In System Programmer (ISP) (Read 15 times) previous topic - next topic

Lauszus

Hmm, that's weird.
Are you sure you have connected everything to the atmega8? Like all ground connections, VCC and a crystal (if you are using that).

Regards
Lauszus

enricozeta

Hello.
I tried to replace the card with another Arduino Mega 2560 and also the ATmega8 chip.
I'm using version 0.23 of the IDE.
AVRDUDE used is provided with the IDE.
I also added the crystal.

But the result is always the same.

You can see photo of the installation.

Lauszus

#17
Feb 20, 2012, 04:30 pm Last Edit: Feb 22, 2012, 03:55 pm by Lauszus Reason: 1
Hi,

You should install avrdude separately and not use the one bundled with the Arduino software - I have seen other people having problems with the bundled one as well.

I recommend downloading either WinAVR: http://winavr.sourceforge.net/ if you are running Windows or CrossPack: http://www.obdev.at/products/crosspack/index.html if you use MAC OS X. As they include all you will ever need like: a compiler (avr-gcc), programmer (avrdude), and debugger (avr-gdb) plus more.
You can also just download avrdude seperatly: http://savannah.nongnu.org/projects/avrdude, but I can't see the point, as WinAVR and CrossPack is just way faster to get installed.

Hope that did the trick :)

Regards
Lauszus

enricozeta

Thank you very much, but:
I downloaded WinAVR, type 'avrdude -p m8 -P com4 -c avrisp -b 19200' in C:\WinAVR-20100110\bin directory, and result is:
avrdude.exe: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe: stk500_disable(): protocol error, expect=0x14, resp=0x51


I downloaded avrdude-5.11-Patch7610-win32, but the result is the same.

The problem could be the  bootloader?

Enrico.

Lauszus

Hmm, are you sure that you have connected it the right way? See this post for more info: http://www.ladyada.net/make/usbtinyisp/help.html
Also take a look at this old thread, where people are discussing some of the errors you get: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248528012/all

Regards
Lauszus

Go Up