Hi, I've made a custom board based on mega2560 schematics every things work fine with bootloader, USB to serial on atmega8u2 but when I try to upload a sketch into the board it's come out with a error
stk500 timeout I use Arduino as ISP to upload a Bootloader into mega2560 and use FLIP with Arduino-usbserial-mega.hex to flsh a mega8u2
I've try to use every information on the internet but still struggle with a timeout error anyones
have a advice or comment.
Uncheck the checkbox next to "Show verbose output during: compilation"
Check the checkbox next to "Show verbose output during: upload
Click "OK"
Sketch > Upload
After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the upload output between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
Uncheck the checkbox next to "Show verbose output during: compilation"
Check the checkbox next to "Show verbose output during: upload
Click "OK"
Sketch > Upload
After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the upload output between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
Hi, Pert
this is an error massege that i've got.
This happens when I try to upload a sketch into Mega.
For more information I've use Arduino Mega2560 as an ISP tu burn bootloader to this custom board by follow an instruction on the sketch so I wonder did I need more Filter Capacitor because those two board are already have that cause I read on Nick Gammon site he said that "need a decoupling capacitor when burn the bootloader into the microchip.
Hello, I have create a Arduino mega2560 board by using a sample schemetics from eagle.
I've install bootloader to Mega2560 and flash Mega8u2 without a problems but when I try to
upload a sketch it's get an error
Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting will result in a suspension from the forum.
In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.
Update on my board i have program MEGA2560 with AVRmk2 programmer and got a loopback out.
int i =1;
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1500); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1500);
Serial.println(i);
i++;// wait for a second
}
Hey everyone I just try again with provided .hex files in arduino folder it came out that everythings is fine except fuses setting that divided clock of 8u2 by 8 so just uncheck that box in atmel studio and everythings work fine thanks!!
majinwu:
Hello, I have create a Arduino mega2560 board by using a sample schemetics from eagle.
I've install bootloader to Mega2560 and flash Mega8u2 without a problems but when I try to
upload a sketch it's get an error
So I have a doubt that my atmega8u2 firmware is have some issues.
Does anyones have a known good firmwares for atmega8u2.
below is my eagle files and schemetics that I've modified.