Pages: [1] 2   Go Down
Author Topic: Uploading error  (Read 2642 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not happy, I tried with two Arduino boards with the same result, if the beginn was so ... smiley-sad
Logged

Forum Administrator
Offline Offline
Newbie
*****
Karma: 3
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1] 2   Go Up
Jump to: