Skip to content
KeithBoden edited this page Jan 12, 2022 · 1 revision

Additional information

  • The bootloader enables a pullup on the BOOTLOADER_PIN. This is a good default setting; all you need to do is ground your pin to enable/bypass the bootloader depending on the BOOTLOADER_PIN_ON setting. If this is not desired, change it in Xmega_Bootloader.c, 2nd line in main.

Examples

  • Writing the bootloader with fuse2 set to boot to the bootloader on reset

avrdude -px64a3u -cavrisp2 -vv -e -Ufuse2:w:0xbf:m -Uflash:w:Xmega_Bootloader.hex:a

Update the -p and -c as needed

  • Writing a program through the bootloader

avrdude -px64a3u -P/dev/ttyUSB0 -b115200 -cavr911 -vv -e -Uflash:w:YourFile.hex:a

Update the -p, -P and YourFile.hex as needed

Clone this wiki locally