-
Notifications
You must be signed in to change notification settings - Fork 121
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
Optiboot bootloader hex file not working for Arduino Mega2560 clone #188
Comments
how do you flash it? do you set the fuses for bootloader location? |
First try using usbasp under Arduino 1.8.19 -- this does not seem to work. So I thought it was related to my usbasp clone.
|
Second try using avrdude and AVR Dragon. The programming is okay but the result is not good -- no LED flashing, Arduino or avrdude can not communicate with the board.
|
Result using avrdue and Arduino is the same after the above bootloader programming using AVR Dragon.
|
No issue with another bootloader file here. I can upload the blink sketch after flashing the bootloader and then the LED will blink.
|
No issues with Arduino either.
|
Not so sure this is related to previous report here. Probably not the same since I can program the bootloader just fine. |
you use "Burn Bootloader" in Arduino IDE Tools menu? |
Yes and it does not work. Run log here: |
@JAndrassy I tried your repo as well and it has the same problem with usbasp. I think this is probbaly due to the avrdude version and my usbasp clone, and not exactly related to this issue.
|
@JAndrassy Using your bootlaoder here ( https://github.com/JAndrassy/my_boards/blob/master/avr/bootloaders/optiboot8/optiboot_atmega2560.hex ), it has some problem as well under Arduino and avrdude.
Error message under Arduino.
|
Using another usbasp clone seems to be better and it works with the bootloader uploading with https://github.com/JAndrassy/my_boards
Uploading still failed.
|
Even if I use usbasp to upload the sketech and use the bootloader to verify, it will fail.
|
Going back to the MegaCore bootloader using the new usbasp, I can upgrade the bootloader now. After that I can upload the blinky sketch without an issue and the LED can blink.
Now it seems to work fine under Arduino.
|
@MCUdude So this seems to be a false alarm. I will close the issue now. |
BTW, eeprom is working as well.
|
and you upload the sketch with Mega Core? |
Yes. That works well when I use the right usbasp and burn the megacore bootloader. The run log is in the previous comment. For your myboard bootloader, I use your myboard core. Run log is in the previous comment. |
The optiboot hex file for the ATmega2560 did not work for my Arduino Mega2560 clone: no LED flashing, not able to connect using avrdude.
I am using this paticular hex file.
https://github.com/MCUdude/MegaCore/blob/master/avr/bootloaders/optiboot_flash/bootloaders/atmega2560/16000000L/optiboot_flash_atmega2560_UART0_115200_16000000L_B7_BIGBOOT.hex
The factory stk500v2 bootloader hex file or the optiboot hex file provided by stefanrueger in the avrdude work fine.
Reference:
The text was updated successfully, but these errors were encountered: