Go Down

Topic: Uploading error (Read 2918 times) previous topic - next topic

Gabriel

I am trying to upload the blink-file to the Arduino board. I started some days before, no result:
I always get:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
The booloader is on the chip, burned myself with another programmer. After resetting, the LED blinks 8 time shortly.I have the board with the SUBD connector (for COM1); nothing helps. I have the original Arduinoboard, on the pc is running Windows XP, I am using Arduino 0010.
Please help!

mellis

How fast does the LED blink?  Does it blink 8 times and then never blink again?

What command line did you use to burn the bootloader?  Did you set the fuses?  

What kind of original Arduino board?

Gabriel

Fast, evan faster than every second...After blinking it stops. It starts again if I push the button on board. 8 times blinking and it stopps again. I am using the Arduimo serial v2.0 board with the sub-d connector. I burned the chip separately (on arduino board impossible) with another programmer and the same serial cable.

Gabriel

For the bootloader I just used the hex-file with my programmer (ATmega 8 was burned on this programmer, not on the Arduino-board because impossible) and the PonnyProg software.

Gabriel

I tried with Arduino 009, 0010, 002. The las one shows "Arduino is not responding".

Gabriel

I'm not happy, I tried with two Arduino boards with the same result, if the beginn was so ... :(

admin

If you burned the bootloader yourself, did you make sure you burn the right fuses?

if they are not set correctly the processor would be running at the wrong speed.

Also make sure you select they right type of processor from the tools menu before you compile.

massimo

Gabriel

It is an ATmega 8. Please give me the right fuses for the bootloader. I will try again with ponnyprog

mellis

The fuses are in the ARDUINO/hardware/boards.txt file.

Gabriel

Sorry, i did not find it, do you have the link?

Gabriel

I think i destroyed my ATmega playing with these fuses, i don't understand when i open the boodloader hex-file with ponnyprog are the fuse-settings not saved with this file? i am sure it was ok so, it was no error during burning and now works nothing more. It is impossible to write on the chip now.

Gabriel

So, one ATmega for the garbage for the second i will not play with the fuses...If you have another ideea, i am open for everything excepting fuses.

mellis

Well, the fuses aren't in the bootloader .hex file.  You do, however, need to set the fuses if you don't want the chip uses its internal clock (which on the ATmega8 is 8 MHz, I think, as opposed to the 16 MHz crystal on the board).  Otherwise, you'll need to either recompile the bootloader so that it knows what clock speed its running at, or change the baud rate you use when uploading.

Gabriel

I have a problem with these fuses, that is why i don't like the Atmegas so much. I never had such a problem with Pics. The only one thing that would help me, would be a screen-shot with the right fuses from PonyProg, maybe helps...

mellis

Which hardware programmer are you using?  If it's one that's in the Arduino IDE, I'd try using that instead of PonyProg, since I've tested that it sets the fuses correctly, etc.

Go Up