Arduino Forum

Development => Other Hardware Development => Topic started by: bokeauss on Jan 22, 2018, 11:19 pm

Title: Error uploading code (while time ago worked fine..)
Post by: bokeauss on Jan 22, 2018, 11:19 pm
Hi all,

I'm playing with one board I made time ago with an Atmega328 and MCP2200 for USB communications. I used to upload the code using Arduino IDE (version 1.5.x) with no problems.

Now, after long time with the electronics on the drawer, I am trying to upload a new code (Arduino IDE 1.8.5) and getting this error message in the console:

Code: [Select]

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xce
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9d
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf7
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xad
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0d
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9d
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xdd
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xcf
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe7

avrdude done.  Thank you.


The point is that:
a) drivers are installed (and updated)
b) I'm using the correct COM port
c) the board is working since I can talk to the board through the serial port monitor…

I can try to reburn the bootloader but I would like to know what's happening. Looks like Arduino IDE is not communicating well with the MCP2200.

Any help or clue is appreciated. Thanks in advance. 
Title: Re: Error uploading code (while time ago worked fine..)
Post by: robtillaart on Jan 23, 2018, 08:38 am
Not knowing a solution but have you retried the 1.5 IDE?
If that does work there is something broken in the IDE / avrdude call.
If that does not work it might be the board.

Title: Re: Error uploading code (while time ago worked fine..)
Post by: bokeauss on Jan 24, 2018, 05:08 pm
I could succesfully upload the code with no errors using Arduino IDE 1.0.5. However, I cannot do that with the rest of versions.... why???
Title: Re: Error uploading code (while time ago worked fine..)
Post by: bokeauss on Aug 25, 2018, 07:16 pm
So.... nobody knows why this happens?
Title: Re: Error uploading code (while time ago worked fine..)
Post by: westfw on Aug 27, 2018, 08:18 pm
Nope.


Which bootloader, what speed?  Turn on verbose upload message and post the results...

The ide doesn't know anything about the specific usb chip; it's just interacting with a serial port.