Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
avr_bootloader:bootloader [2020/03/23 20:31] admin [Burning the Bootloader with the AVRdude] |
avr_bootloader:bootloader [2020/06/11 22:13] (current) |
||
---|---|---|---|
Line 91: | Line 91: | ||
=== ... with the Paper-USBasp Programmer ==== | === ... with the Paper-USBasp Programmer ==== | ||
- | For setting the fuse bits one has to type: | + | {{:avr_bootloader:paper-usbasp_programming_board.jpg?400|}}\\ |
+ | |||
+ | If one one want to burn the bootloader with an [[avr_bootloader:paper_usbasp|Paper-USBasp]] programming board the command to set the fuse bits is: | ||
$ sudo avrdude -p m328p -c usbasp -P usb -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0xFD:m | $ sudo avrdude -p m328p -c usbasp -P usb -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0xFD:m | ||
- | And for the bootloader: | + | And for the actual bootloader it is: |
$ sudo avrdude -p m328p -c usbasp -P usb -U flash:w:optiboot_atmega328.hex:i | $ sudo avrdude -p m328p -c usbasp -P usb -U flash:w:optiboot_atmega328.hex:i | ||
- | {{:avr_bootloader:paper-usbasp_programming_board.jpg?600|}}\\ | ||
=== ... with an AVR ISP Programmer ==== | === ... with an AVR ISP Programmer ==== | ||
- | For setting the fuse bits one has to type: | + | If one uses an AVR ISP Programmer to set the fuse bits one has to use this command: |
$ sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0xFD:m | $ sudo avrdude -p m328p -c stk500v2 -P /dev/ttyACM0 -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0xFD:m | ||
- | And for the bootloader: | + | And for the bootloader this one: |
$ 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 | ||
- | Depending on the AVR ISP Programmer it could be that one needs the stk500v1 protocol. | + | Depending on the AVR ISP Programmer it could be that one needs the stk500v1 protocol instead of the version 2 (stk500v2). |
=== ... with the Paper-AVRISP mkII === | === ... with the Paper-AVRISP mkII === | ||
+ | |||
+ | {{:avr_bootloader:paper-avrisp_mkii_programming_board.jpg?400|}}\\ | ||
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: | ||
Line 117: | Line 120: | ||
or even: -e -F\\ | or even: -e -F\\ | ||
Sometimes a specific Baud rate helps, too: -b 19200\\ | Sometimes a specific Baud rate helps, too: -b 19200\\ | ||
- | For verbose mode output use: -v\\ | + | For verbose output use: -v\\ |
=== Burning an Atmega328 (without P) == | === Burning an Atmega328 (without P) == | ||
- | When using an Atmega328 (without p) use "-p m238" instead of "-p m238p". An other possibility would be to use sdditionaly -F for skipping the signature check.\\ | + | When using an Atmega328 (without p) use "-p m238" instead of "-p m238p".\\ |
- | More information one finds at the [[avr_bootloader:AVRdude|AVRdude]] page.\\ | ||
---- | ---- | ||
==== Links ==== | ==== Links ==== |