Go Down

Topic: uploading problem (Read 2087 times) previous topic - next topic

sonh

dear all,

I am a newbie to arduino. I tried to uploading the code to my arduino UNO atmega328p with no problem, but I have the problem with atmega88p that I just bought the IC itself and removed atmega328p IC out and put atmega88p in, then I had this message:

Binary sketch size: 1,084 bytes (of a 32,256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00

anyone knows the problem, please help. I appreciate very much.

vsathish

is that chip contains in built bootloader....

sonh

hi vsathish,

Quote
is that chip contains in built bootloader....


I don't know. How do I check whether it has the bootloader or not? if not, how do I add the bootloader? please advise.

thanks very much.

vsathish

Reset arduino using reset button if the led next to 13pin blinks the arduino is bootloaded
check and reply.......

sonh

hi vsathish,

yes, you're right. I checked my arduino UNO board with original atmega328P and I see led flashing and I remove atmega328P and replace atmega88PA and see no flashing. By the way, I watched some youtube video on how to upload the bootloader and I try, but the UNO board using atmega328P did not recognize atmega88P and I got this message:

avrdude: Expected signature for ATMEGA328P is 1E 95 0F
         Double check chip, or use -F to override this check.

and I read some post online show how to work around with problem:

Workaround:
In your Arduino folder, find the subfolder: ..\hardware\tools\avr\etc
1. Make a backup copy of the file: avrdude.conf
2. Open the file avrdude.conf in a text editor
3. Search for: "0x1e 0x95 0x0F" (this is the ATmega328P signature)
4. Replace it with: "0x1e 0x95 0x14" (this is the ATmega328 signature)
5. Save the file
6. Restart the Arduino IDE
7. Continue with the rest of the steps in the instructable, and once bootloading is complete restore the backup copy you made.

I changed the signature from atmega328P to signature of atmega88PA, but I guess it did not work since I am using another atmega328P board to burn the boot loader for atmega88PA. They have different in word length when write and read, I am right? I should use atmega88PA board to burn.

thanks very much for your input.

vsathish

hi sonh

http://arduino.cc/en/Tutorial/ArduinoToBreadboard

try this method to upload bootloader to atmega88.................
i tried this method in atmega328p it successfully uploaded.........

sonh

hi vsathish,

Thanks for sending me the tutorial, but according to the tutorial note:

"Note that these techniques only work with the Arduino Duemilanove w/ an ATmega328, not the Arduino Uno (or older Arduino boards w/ an ATmega168)."


I have arduino UNO board with Atmega328P. Do you know any other ways for arduino UNO board?

Thanks so much.

vsathish

hi sonh

i tried this in my arduino uno board to bootload atmega328p .......
it successfully bootloaded it try this method in ur board using any atmega chip........

sonh

hi vsathish,

ok, I'll try and let you know.

Thanks again.

sonh

hi vsathish,

I tried the tutorial you sent me with minimal components method because I don't have crystal and capacitors. Unfortunately, it failed and gave me the below message:

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

Any ideas what's wrong. Thanks a lot for your help.

vsathish


hi vsathish,

I tried the tutorial you sent me with minimal components method because I don't have crystal and capacitors. Unfortunately, it failed and gave me the below message:

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

Any ideas what's wrong. Thanks a lot for your help.


u must use components same as in tutorial otherwise it wont work...............................

sonh

hi vsathish,

I tried with the external crystal method and I got the different message below:

avrdude: verification error, first mismatch at byte 0x1800
         0xff != 0x0c
avrdude: verification error; content mismatch

look like the tutorial uploading using arduino board with atmega328 and uploading the bootloader onto atmega168. I am using arduino uno board with atmega328P and uploading the bootloader onto atmega88P. I don't know that's the reason it did not work for me.
Do you have any suggestion what's wrong with it?

Thanks,
Sonh

Go Up