Hello everyone,
I have designed an arduino mega2560 myself and assembled it. Firstly, I have uploaded Arduino-usbserial-atmega16u2-Mega2560-Rev3 hex file to atmel 16u2 chip using FLIP program without any error. And then I have burned bootloader to 2560 chip using ICSP pins and a master arduino uno without any error. Now my board is ready to upload any sketch,yet the problem begins at this point. I am trying to upload a basic "led on" sketch, but after 5 trials, it fails showing timeout error. Indeed for each try to send I can only see RX led is on shortly. I tried reburn the bootloader and upload hex file to 16u2 again and again, yet I could not find the solution. I have read lots of topic related to this, but none of them is solved mine.
Sketch uses 1556 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
"C:\Users\hobbit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\hobbit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega2560 -cwiring "-PCOM4" -b115200 -D "-Uflash:w:C:\Users\hobbit\AppData\Local\Temp\arduino\sketches\930136B7174FBB4FB9999C7EFA915B51/deneme.ino.hex:i"
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\hobbit\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM4
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.
Failed uploading: uploading error: exit status 1