I've developed a project that basically consists of reproducing the Arduino Mega schematics and export it to an ECAD tool to test my PCB design skills after a technical course.
After recieving the PCB and soldering the components everything worked fine from an electrical point of wiev. The problem came up in the very last step when I tried to program the PCB from the Arduino IDE using the USB. The IDE tries to upload the sketch but this never happens, giving the following error:
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "D:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM7 Using Programmer : wiring Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
An error ocurred while uploading the sketch
Until now I've tried (successfully) the following steps:
I've to point out that to program the PCB from outside I had to remove C7 cap (100nF) to cancel ATMEGA16U2 DTR line reset effects on ATMEGA2560-16AU. After programming, I resoldered it to allow ATMEGA16U2 to communicate with ATMEGA2560-16AU (ARDUINO MEGA Schematics attached).
I'll be very grateful if anyone can give me some feedback to fix this issue.
Thanks in advance
After recieving the PCB and soldering the components everything worked fine from an electrical point of wiev. The problem came up in the very last step when I tried to program the PCB from the Arduino IDE using the USB. The IDE tries to upload the sketch but this never happens, giving the following error:
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "D:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM7 Using Programmer : wiring Overriding Baud Rate : 115200
avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
An error ocurred while uploading the sketch
Until now I've tried (successfully) the following steps:
- I've programmed ATMEGA2560-16AU using an Arduino USB-to-Serial module, which is basically the same circuit included in the Arduino Mega, and it works fine. Before programming, I bootloaded the micro following information offered in Arduino official web page.
I've to point out that to program the PCB from outside I had to remove C7 cap (100nF) to cancel ATMEGA16U2 DTR line reset effects on ATMEGA2560-16AU. After programming, I resoldered it to allow ATMEGA16U2 to communicate with ATMEGA2560-16AU (ARDUINO MEGA Schematics attached).
- I've followed a tutorial to flash ATMEGA16U2 using ATMEL's FLIP software. After put the microcontroller in DFU mode and install the proper Arduino driver, the computer and Arduino IDE both recognize it as a COM port, so everything looks to be fine.
I'll be very grateful if anyone can give me some feedback to fix this issue.
Thanks in advance