Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
avr_bootloader:bootloader [2020/03/23 18:53] admin [Burning the Bootloader with the AVRdude] |
avr_bootloader:bootloader [2020/03/23 19:05] admin [Burning the Bootloader with the AVRdude] |
||
---|---|---|---|
Line 74: | Line 74: | ||
=== Fuse Bits === | === Fuse Bits === | ||
- | In the board.txt file the fuses bits are set like that: | + | In the board.txt file for the Arduino UNO the fuse bits are set like that: |
uno.bootloader.low_fuses=0xFF | uno.bootloader.low_fuses=0xFF | ||
uno.bootloader.high_fuses=0xDE | uno.bootloader.high_fuses=0xDE | ||
Line 92: | Line 92: | ||
For setting the fuse bits one has to type: | For setting the fuse bits one has to type: | ||
- | $ sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0x05:m | + | $ sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xFF:m hfuse:w:0xDE:m efuse:w:0xFD:m |
And for the bootloader: | And for the bootloader: | ||
$ sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -U flash:w:optiboot_atmega328.hex:i | $ sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -U flash:w:optiboot_atmega328.hex:i | ||
Line 100: | Line 100: | ||
If one has a [[avr_bootloader:paper-avrisp_mk2|Paper-AVRISP mkII]] one hast to type in the terminal the following. For setting the fuse bits: | If one has a [[avr_bootloader:paper-avrisp_mk2|Paper-AVRISP mkII]] one hast to type in the terminal the following. For setting the fuse bits: | ||
- | $ sudo avrdude -p m328p -c avrispmkII -P usb -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0x05:m | + | $ sudo avrdude -p m328p -c avrispmkII -P usb -U lfuse:w:0xFF:m hfuse:w:0xDE:m efuse:w:0xFD:m |
And for the actual bootloader: | And for the actual bootloader: | ||
$ sudo avrdude -p m328p -c avrispmkII -P usb -U flash:w:optiboot_atmega328.hex:i | $ sudo avrdude -p m328p -c avrispmkII -P usb -U flash:w:optiboot_atmega328.hex:i |