-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It doesn't upload the bootloader during flash #164
Comments
So after you've burned the bootloader to the ATmega2560 you're not able to upload anything to it using a USB to serial adapter? "Burn bootloader" consists of two Avrdude commands. The first Avrdude command sets the fuses, like in the Avrdude output you've posted, and the second Avrdude command writes the bootloader. I'll recommend getting a dedicated programmer, such as the USBasp. It's always nice to have a programmer that always works. There are usually lots of issues with Arduino as ISP. It doesn't mean it's something wrong with the code, but the whole wire-it-yourself thing is a significant source of error. |
It's actually not performing the second phase. I can upload the Arduino
bootloader just fine, but this one won't even accept a project after. It's
definitely not the wiring and it's not the settings. I think it's ignoring
some of the settings, so it's not finding a hex that matches. For example,
it doesn't even ask which baud rate I want to use.
I'm presently using version 1.8.3 of the IDE.
…On Fri, May 7, 2021, 01:18 Hans ***@***.***> wrote:
So after you've burned the bootloader to the ATmega2560 you're not able to
upload anything to it using a USB to serial adapter?
"Burn bootloader" consists of two Avrdude commands. The first Avrdude
command sets the fuses, like in the Avrdude output you've posted, and the
second Avrdude command writes the bootloader.
I'll recommend getting a dedicated programmer, such as the USBasp. It's
always nice to have a programmer that *always* works. There are usually
lots of issues with Arduino as ISP. It doesn't mean it's something wrong
with the code, but the whole wire-it-yourself thing is a significant source
of error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#164 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATOTXI5VMO6UKZZDTP23L7LTMOAZ3ANCNFSM44IPTLJQ>
.
|
Are you sure you've selected "Bootloader: Yes (UART0)"? and then ran "Burn Bootloader"? Also, I highly recommend you upgrade to IDE 1.8.13. IIRC the 1.8.3 version has a lot of bugs that have later been fixed. I'm not 100% sure, but your issue may be related to the IDE version. |
Yes. All settings are accounted for. And I actually am using the latest
version. I missed a 1.
…On Fri, May 7, 2021, 13:15 Hans ***@***.***> wrote:
Are you sure you've selected "Bootloader: Yes (UART0)"? and then ran "Burn
Bootloader"?
Also, I highly recommend you upgrade to IDE 1.8.13. IIRC the 1.8.3 version
has a lot of bugs that have later been fixed. I'm not 100% sure, but your
issue *may* be related to the IDE version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#164 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATOTXI2WQAEUPZWDXLVKFJTTMQU35ANCNFSM44IPTLJQ>
.
|
Can you turn on verbose compilation and upload in the IDE settings and post the entire output? I just successfully burned the bootloader to an Arduino MEGA 2560 using a USBasp programmer, and I'm able to upload to it just fine |
Simple Blink example
|
I tried it again. It worked on the 5th try. |
|
Hans probably meant that you post the verbose output from uploading bootloader, no? |
@D337z Forget about PlatformIO for now. If you were to use it, you can't use As @tomaskovacik points out, I need you to post the verbose output when you burh the bootloader. It would be nice if you could post a screenshot of the Tools menu so I can verify that there isn't anything obviously wrong with your settings. |
what is this "verbose output"...? |
No reply from OP for a very long time. |
Hi! So I'm trying to burn a bootloader to my ATMega2560 board and it's not actually copying anything to the bootloader area. It claims to, but reading back the bootloader through serial shows nothing but 0xFF across the board and the board flashes fast twice every second. The burn takes about 3 seconds, so I know it's not sending data. I believe it's skipping straight to setting the fuses without actually sending the hex data. I'm trying to use my Arduino Uno as a programmer, but it states that it's using the stk500v1. There's definitely an issue there.
Here's the output of the command:
The text was updated successfully, but these errors were encountered: