snurce / optiboot

Automatically exported from code.google.com/p/optiboot
0 stars 0 forks source link

stk500_getsync(): not in sync: resp=0x94 #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Upload a optiboot to MCU ATmega8/168/368 on breadboard.
2.Put pl2023 usb to com cable to PC.
3.Try to send firmware to it via com port.

What is the expected output? What do you see instead?
I expect proper uploading but got sync error.

What version of the product are you using? On what operating system?
OpenSuse Linux 11.3 x64 Optiboot v3 & Ardu'no 0019

Please provide any additional information below.
When I put optiboot loaded chip to "arduino duemilanove PCB", than it accepts 
new programs automatically... But when I put same chip to my breadboard, which 
it's needed to I press reset button by hand to flash it gives sync error. I 
don't understand why.

I can sent firmwares @ 57600 bps with this cable to my breadboard MCU's If I 
use original arduino bootloader. I also send/recv data @230400 with this USB to 
rs232 cable from my breadboard MCU. I don't suspect about them. But I have some 
doubts on "reset" mechanizm... I tried with ATmega8/168/328 mcus, they all 
same...
Can you guess what is the problem?

Here error log:
------------------------------------------------
death@triQuad:/home/PIC/arduino-0019> 
/home/PIC/arduino-0019/hardware/tools/avrdude 
-C/home/PIC/arduino-0019/hardware/tools/avrdude.conf -vvvv -patmega328p 
-cstk500v1 -P/dev/ttyUSB0 -b115200 -D 
-Uflash:w:/tmp/build1602342121145734321.tmp/ArduinoISP.cpp.hex:i 

avrdude: Version 5.4-arduino, compiled on Oct 22 2007 at 13:15:12
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/home/PIC/arduino-0019/hardware/tools/avrdude.conf"
         User configuration file is "/home/death/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/ttyUSB0
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 115200
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: . [94] 
avrdude: stk500_getsync(): not in sync: resp=0x94
avrdude: Send: Q [51]   [20] 
avrdude: Recv: . [94] 
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x94

avrdude done.  Thank you.

Original issue reported on code.google.com by erdem...@gmail.com on 28 Sep 2010 at 12:55

GoogleCodeExporter commented 8 years ago
I found the guilty.
I test this chip with serial 115200 baud it gives corrupted output but 57600 
baud is working. Checked some components and found that my XTAL is faulty. 
Changing it with new 16mhz xtal fix the issue.

So Optiboot has no defect like that for me.
Thanks.

Original comment by erdem...@gmail.com on 30 Sep 2010 at 11:56

GoogleCodeExporter commented 8 years ago
Good news. Thanks erdem.ua.

Original comment by cathed...@gmail.com on 12 Oct 2010 at 6:51