Hello everyone. I'm new to this forum and I hope you'll be able to help me.
I built a standalone Mega2560 board with the Atmega16U2 to be able to use my system as closest as possible to a real Arduino.
Everything in my setup is working perfectly, except 1 small detail. Since I don't own a real Arduino Mega2560, I want to check with other users if it's something wrong or not.
When I power up the unit, the program on the Mega2560 starts right away. If I program it using the Arduino software, again, the program starts right at the end of the process. But, when I open the serial monitor, the chip resets and the program starts 9.5 seconds later. Is this delay normal ? On my Uno, this same delay is near nothing.
Of course, I've made some research on the net, on the forum, etc. I used my oscilloscope and found the reset is working normally (same behavior as on my Uno). The only other connection to the Mega2560 is the serial connection. Again, the TX of the Atmega16U2 goes low (for 39 us) when the chips resets the Mega2560 and this is the same with my Uno.
I tried to use the exact same settings of the real Mega2560. I'm using an AVR MkII clone and AtmelStudio 6. For the PCB, I simply followed the Eagle schematics of the real one. Here is the details of my bootloaders and initial chip settings (programs found in Arduino 1.0.3 directory) :
Atmega16U2
Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex
Extended : 0xF4
High : 0xD9
Low f : 0xEF
Lock bits : 0xEC
Mega2560
stk500boot_v2_mega2560.hex
Extended : 0xFD
High : 0xD8
Low f : 0xFF
Lock bits : 0x0F
Thank you for your help !