Browse Source

Fix some fuse and lockbit value errors, add Atmel Xplained Mini boards

WestfW 9 years ago
parent
commit
be06597525
2 changed files with 177 additions and 6 deletions
  1. 91 6
      optiboot/boards-1.6.txt
  2. 86 0
      optiboot/boards.txt

+ 91 - 6
optiboot/boards-1.6.txt

@@ -20,7 +20,7 @@ optiboot28.upload.speed=115200
 
 optiboot28.bootloader.tool=arduino:avrdude
 optiboot28.bootloader.low_fuses=0xF7
-optiboot28.bootloader.unlock_bits=0x0F
+optiboot28.bootloader.unlock_bits=0x3F
 optiboot28.bootloader.lock_bits=0x2F
 optiboot28.build.f_cpu=16000000L
 
@@ -107,7 +107,6 @@ optiboot28.menu.cpu.atmega8.upload.maximum_data_size=1024
 
 optiboot28.menu.cpu.atmega8.bootloader.high_fuses=0xCC
 optiboot28.menu.cpu.atmega8.bootloader.low_fuses=0xBF
-optiboot28.menu.cpu.8MHz.bootloader.low_fuses=0xE2
 # optiboot28.menu.cpu.atmega8.bootloader.extended_fuses=0x00
 optiboot28.menu.cpu.atmega8.bootloader.file=optiboot/optiboot_atmega8.hex
 
@@ -139,8 +138,8 @@ optiboot32.upload.speed=115200
 
 optiboot32.bootloader.tool=arduino:avrdude
 optiboot32.bootloader.low_fuses=0xF7
-optiboot32.bootloader.unlock_bits=0x2F
-optiboot32.bootloader.lock_bits=0x0F
+optiboot32.bootloader.unlock_bits=0x3F
+optiboot32.bootloader.lock_bits=0x2F
 optiboot32.build.f_cpu=16000000L
 
 #
@@ -269,8 +268,8 @@ optiboot1284.build.variant=arduino:standard
 optiboot1284.upload.maximum_size=130048
 optiboot1284.upload.maximum_data_size=16384
 
-# Select full swing crystal oscillator (7F rather than FF)
-optiboot1284.bootloader.low_fuses=0x7F
+# Select full swing crystal oscillator (F7 rather than FF)
+optiboot1284.bootloader.low_fuses=0xF7
 optiboot1284.bootloader.high_fuses=0xDE
 optiboot1284.bootloader.extended_fuses=0x05
 optiboot1284.bootloader.file=optiboot/optiboot_atmega1284p.hex
@@ -345,3 +344,89 @@ optiboott84.upload.maximum_size=7600
 optiboott84.upload.maximum_data_size=512
 
 optiboott84.build.mcu=attiny84
+
+##############################################################
+
+optibootxmini168b.name=Optiboot Xplained Mini 168pb
+
+optibootxmini168b.upload.tool=arduino:avrdude
+optibootxmini168b.upload.protocol=arduino
+optibootxmini168b.upload.speed=57600
+
+optibootxmini168b.bootloader.tool=arduino:avrdude
+optibootxmini168b.bootloader.unlock_bits=0x3F
+optibootxmini168b.bootloader.lock_bits=0x2F
+
+optibootxmini168b.build.f_cpu=16000000L
+
+optibootxmini168b.build.board=AVR_UNO
+optibootxmini168b.build.core=arduino:arduino
+optibootxmini168b.build.variant=arduino:standard
+
+optibootxmini168b.upload.maximum_size=15872
+optibootxmini168b.upload.maximum_data_size=1024
+
+optibootxmini168b.bootloader.low_fuses=0xBF
+optibootxmini168b.bootloader.high_fuses=0xCE
+optibootxmini168b.bootloader.extended_fuses=0xFF
+optibootxmini168b.bootloader.file=optiboot/optiboot_xplained168b.hex
+
+optibootxmini168b.build.mcu=atmega168
+
+#############################
+
+
+optibootxmini328pb.name=Optiboot Xplained Mini 328pb
+
+optibootxmini328pb.upload.tool=arduino:avrdude
+optibootxmini328pb.upload.protocol=arduino
+optibootxmini328pb.upload.speed=57600
+
+optibootxmini328pb.bootloader.tool=arduino:avrdude
+optibootxmini328pb.bootloader.unlock_bits=0x3F
+optibootxmini328pb.bootloader.lock_bits=0x2F
+
+optibootxmini328pb.build.f_cpu=16000000L
+
+optibootxmini328pb.build.board=AVR_UNO
+optibootxmini328pb.build.core=arduino:arduino
+optibootxmini328pb.build.variant=arduino:standard
+
+optibootxmini328pb.upload.maximum_size=32128
+optibootxmini328pb.upload.maximum_data_size=1024
+
+optibootxmini328pb.bootloader.low_fuses=0xBF
+optibootxmini328pb.bootloader.high_fuses=0xCE
+optibootxmini328pb.bootloader.extended_fuses=0xFF
+optibootxmini328pb.bootloader.file=optiboot/optiboot_xplained328pb.hex
+
+optibootxmini328pb.build.mcu=atmega328p
+
+#############################
+
+
+optibootxmini328p.name=Optiboot Xplained Mini 328p
+
+optibootxmini328p.upload.tool=arduino:avrdude
+optibootxmini328p.upload.protocol=arduino
+optibootxmini328p.upload.speed=57600
+
+optibootxmini328p.bootloader.tool=arduino:avrdude
+optibootxmini328p.bootloader.unlock_bits=0x3F
+optibootxmini328p.bootloader.lock_bits=0x2F
+
+optibootxmini328p.build.f_cpu=16000000L
+
+optibootxmini328p.build.board=AVR_UNO
+optibootxmini328p.build.core=arduino:arduino
+optibootxmini328p.build.variant=arduino:standard
+
+optibootxmini328p.upload.maximum_size=32128
+optibootxmini328p.upload.maximum_data_size=1024
+
+optibootxmini328p.bootloader.low_fuses=0xBF
+optibootxmini328p.bootloader.high_fuses=0xCE
+optibootxmini328p.bootloader.extended_fuses=0xFF
+optibootxmini328p.bootloader.file=optiboot/optiboot_xplained328p.hex
+
+optibootxmini328p.build.mcu=atmega328p

+ 86 - 0
optiboot/boards.txt

@@ -245,3 +245,89 @@ atmega1284o.build.mcu=atmega1284p
 atmega1284o.build.f_cpu=16000000L
 atmega1284o.build.core=arduino:arduino
 atmega1284o.build.variant=arduino:standard
+
+##############################################################
+
+optibootxmini168b.name=Optiboot Xplained Mini 168pb
+
+optibootxmini168b.upload.tool=arduino:avrdude
+optibootxmini168b.upload.protocol=arduino
+optibootxmini168b.upload.speed=57600
+
+optibootxmini168b.bootloader.tool=arduino:avrdude
+optibootxmini168b.bootloader.unlock_bits=0x3F
+optibootxmini168b.bootloader.lock_bits=0x2F
+
+optibootxmini168b.build.f_cpu=16000000L
+
+optibootxmini168b.build.board=AVR_UNO
+optibootxmini168b.build.core=arduino:arduino
+optibootxmini168b.build.variant=arduino:standard
+
+optibootxmini168b.upload.maximum_size=15872
+optibootxmini168b.upload.maximum_data_size=1024
+
+optibootxmini168b.bootloader.low_fuses=0xBF
+optibootxmini168b.bootloader.high_fuses=0xCE
+optibootxmini168b.bootloader.extended_fuses=0xFF
+optibootxmini168b.bootloader.file=optiboot/optiboot_xplained168b.hex
+
+optibootxmini168b.build.mcu=atmega168
+
+#############################
+
+
+optibootxmini328pb.name=Optiboot Xplained Mini 328pb
+
+optibootxmini328pb.upload.tool=arduino:avrdude
+optibootxmini328pb.upload.protocol=arduino
+optibootxmini328pb.upload.speed=57600
+
+optibootxmini328pb.bootloader.tool=arduino:avrdude
+optibootxmini328pb.bootloader.unlock_bits=0x3F
+optibootxmini328pb.bootloader.lock_bits=0x2F
+
+optibootxmini328pb.build.f_cpu=16000000L
+
+optibootxmini328pb.build.board=AVR_UNO
+optibootxmini328pb.build.core=arduino:arduino
+optibootxmini328pb.build.variant=arduino:standard
+
+optibootxmini328pb.upload.maximum_size=32128
+optibootxmini328pb.upload.maximum_data_size=1024
+
+optibootxmini328pb.bootloader.low_fuses=0xBF
+optibootxmini328pb.bootloader.high_fuses=0xCE
+optibootxmini328pb.bootloader.extended_fuses=0xFF
+optibootxmini328pb.bootloader.file=optiboot/optiboot_xplained328pb.hex
+
+optibootxmini328pb.build.mcu=atmega328p
+
+#############################
+
+
+optibootxmini328p.name=Optiboot Xplained Mini 328p
+
+optibootxmini328p.upload.tool=arduino:avrdude
+optibootxmini328p.upload.protocol=arduino
+optibootxmini328p.upload.speed=57600
+
+optibootxmini328p.bootloader.tool=arduino:avrdude
+optibootxmini328p.bootloader.unlock_bits=0x3F
+optibootxmini328p.bootloader.lock_bits=0x2F
+
+optibootxmini328p.build.f_cpu=16000000L
+
+optibootxmini328p.build.board=AVR_UNO
+optibootxmini328p.build.core=arduino:arduino
+optibootxmini328p.build.variant=arduino:standard
+
+optibootxmini328p.upload.maximum_size=32128
+optibootxmini328p.upload.maximum_data_size=1024
+
+optibootxmini328p.bootloader.low_fuses=0xBF
+optibootxmini328p.bootloader.high_fuses=0xCE
+optibootxmini328p.bootloader.extended_fuses=0xFF
+optibootxmini328p.bootloader.file=optiboot/optiboot_xplained328p.hex
+
+optibootxmini328p.build.mcu=atmega328p