diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-27 12:05:48 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-27 12:08:55 -0400 |
commit | a5189f7c25afbe8262a9fc435031528360b8dda3 (patch) | |
tree | cc4fe50dac7c8a558e3b72b34c091e687d5b5372 | |
parent | 0bce44e1bbec9987c78ac28e7077fc90c82ff5d9 (diff) | |
download | kutter-a5189f7c25afbe8262a9fc435031528360b8dda3.tar.gz kutter-a5189f7c25afbe8262a9fc435031528360b8dda3.tar.xz kutter-a5189f7c25afbe8262a9fc435031528360b8dda3.zip |
docs: Add some notes to Bootloaders.md on using the atmega168
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rwxr-xr-x | docs/Bootloaders.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/Bootloaders.md b/docs/Bootloaders.md index 3e400142..05163dd6 100755 --- a/docs/Bootloaders.md +++ b/docs/Bootloaders.md @@ -121,6 +121,25 @@ application with it using something like: teensy_loader_cli --mcu=at90usb1286 out/klipper.elf.hex -v ``` +## Atmega168 ## + +The atmega168 has limited flash space. If using a bootloader, it is +recommended to use the Optiboot bootloader. To flash that bootloader +use something like: +``` +wget 'https://github.com/arduino/Arduino/raw/1.8.5/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega168.hex' + +avrdude -cavrispv2 -patmega168 -P/dev/ttyACM0 -b115200 -e -u -U lock:w:0x3F:m -U efuse:w:0x04:m -U hfuse:w:0xDD:m +avrdude -cavrispv2 -patmega168 -P/dev/ttyACM0 -b115200 -U flash:w:optiboot_atmega168.hex +avrdude -cavrispv2 -patmega168 -P/dev/ttyACM0 -b115200 -U lock:w:0x0F:m +``` + +To flash an application via the Optiboot bootloader use something +like: +``` +avrdude -carduino -patmega168 -P/dev/ttyACM0 -b115200 -D -Uflash:w:out/klipper.elf.hex:i +``` + SAM3 micro-controllers (Arduino Due) ==================================== |