make: *** [Makefile:59: flash] Error 1 when flash mega 2560 with mega 2560 #338
Unanswered
RickyLesCircuits
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I'm having a problem flashing an Elegoo Mega2560 with OpenDeck firmware.
I followed the initial procedure correctly: cloned the GitHub repository and opened it in VScode in the container.
The Mega16u2 and Mega2560 firmware compilation went well.
The Mega16u2 flash went very well, however, when it came time to flash the Mega2560, here's what the terminal showed me :
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9801 (probably m2560)
avrdude: erasing chip
avrdude: reading input file 255 for lock
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte lock ...
avrdude: 1 byte of lock written
avrdude: reading input file 252 for efuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte efuse ...
avrdude: 1 byte of efuse written
avrdude: reading input file 208 for hfuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte hfuse ...
avrdude: 1 byte of hfuse written
avrdude: reading input file 255 for lfuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte lfuse ...
avrdude: 1 byte of lfuse written
avrdude done. Thank you.
sudo: unable to resolve host OpenDeck: Temporary failure in name resolution
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9801 (probably m2560)
avrdude: Note: flash memory has been specified, an erase cycle will be performed.
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file /home/ubuntu/workspace/OpenDeck/build/mega2560/release/merged.hex for flash
with 72134 bytes in 1 section within [0, 0x119c5]
using 282 pages and 58 pad bytes
avrdude: writing 72134 bytes flash ...
Writing | ################################################## | 100% 68.29s
avrdude: 72134 bytes of flash written
avrdude: verifying flash memory against /home/ubuntu/workspace/OpenDeck/build/mega2560/release/merged.hex
Reading | ########################CMake Error at /home/ubuntu/workspace/OpenDeck/cmake/scripts/flash.cmake:23 (message):
Flashing failed
ninja: build stopped: subcommand failed.
make: *** [Makefile:59: flash] Error 1
After several attempts, recompiling, and reflashing, I still get the same error and can't figure out where it's coming from.
It seems that the chip write is going well, but during verification, this error appears. Sometimes at the beginning, other times in the middle.
I managed to do this two years ago, but now I'm stuck at this step.
I am on Ubuntu 22.04
Beta Was this translation helpful? Give feedback.
All reactions