Created
March 4, 2023 07:39
-
-
Save jnettlet/0182f65e297758247cfd9c2600c2d276 to your computer and use it in GitHub Desktop.
Flashing Bootloader and firmware to Creality Ender 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Built AVRDude with initial support from the repository, https://github.com/maxxproff/avrdude-ch341.git | |
Only built with ch341a support and not bitbang using SPI on my atmega1842p clocked at 16Mhz, the bitbang support | |
requires linking to a library not compatible with Linux Aarch64, and I don't need it. | |
Grabbed optiboot firmware from the Sanguino project, https://github.com/Lauszus/Sanguino/blob/master/bootloaders/optiboot/optiboot_atmega1284p.hex | |
./avrdude -p atmega1284p -c ch341a -C avrdude.conf -e -u -U lock:w:0x3f:m -U efuse:w:0xFD:m -U hfuse:w:0xDE:m -U lfuse:w:0xFF:m | |
./avrdude -p atmega1284p -c ch341a -C avrdude.conf -e -u -U flash:w:optiboot_atmega1284p.hex -U lock:w:0x0f:m | |
Then built TH3D_Unified2_Creality_Melzi with Microsoft Visual Code for Linux Aarch64 and optiplex | |
and flashed the firmware over usbserial with the following command. | |
./avrdude -p atmega1284p -c arduino -C avrdude.conf -P /dev/ttyUSB0 -b 115200 -Uflash:w:firmware.hex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment