Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 8MHz internal oscillator bootloaders #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ mighty_opt.build.variant=standard

##############################################################

mighty_opt8.name=Mighty 1284p 8MHz using Optiboot
mighty_opt8.upload.protocol=arduino
mighty_opt8.upload.maximum_size=129568
mighty_opt8.upload.speed=57600
mighty_opt8.bootloader.low_fuses=0xff
mighty_opt8.bootloader.high_fuses=0xdc
mighty_opt8.bootloader.extended_fuses=0xfd
mighty_opt8.bootloader.path=optiboot
mighty_opt8.bootloader.file=optiboot_atmega1284p_8MHz.hex
mighty_opt8.bootloader.unlock_bits=0x3F
mighty_opt8.bootloader.lock_bits=0x0F
mighty_opt8.build.mcu=atmega1284p
mighty_opt8.build.f_cpu=8000000L
#mighty_opt8.build.core=arduino:arduino
mighty_opt8.build.core=standard
mighty_opt8.build.variant=standard

##############################################################

avr_developers.name=avr-developers.com pinouts 16MHz using Optiboot
avr_developers.upload.protocol=arduino
avr_developers.upload.maximum_size=130048
Expand Down Expand Up @@ -92,3 +111,42 @@ mighty8.build.f_cpu=8000000L
#mighty8.build.core=arduino:arduino
mighty8.build.core=standard
mighty8.build.variant=standard

##############################################################

mighty_int8.name=Mighty 1284p 8MHz, internal oscillator
mighty_int8.upload.protocol=stk500v1
mighty_int8.upload.maximum_size=129024
mighty_int8.upload.speed=28800
mighty_int8.bootloader.low_fuses=0xe2
mighty_int8.bootloader.high_fuses=0xdc
mighty_int8.bootloader.extended_fuses=0xfd
mighty_int8.bootloader.path=standard
mighty_int8.bootloader.file=ATmegaBOOT_1284P_8MHz.hex
mighty_int8.bootloader.unlock_bits=0x3F
mighty_int8.bootloader.lock_bits=0x0F
mighty_int8.build.mcu=atmega1284p
mighty_int8.build.f_cpu=8000000L
#mighty_int8.build.core=arduino:arduino
mighty_int8.build.core=standard
mighty_int8.build.variant=standard

##############################################################

mighty_int8_opt.name=Mighty 1284p 8MHz, optiboot, internal oscillator
mighty_int8_opt.upload.protocol=arduino
mighty_int8_opt.upload.maximum_size=130048
mighty_int8_opt.upload.speed=57600
mighty_int8_opt.bootloader.low_fuses=0xe2
mighty_int8_opt.bootloader.high_fuses=0xdc
mighty_int8_opt.bootloader.extended_fuses=0xfd
mighty_int8_opt.bootloader.path=optiboot
mighty_int8_opt.bootloader.file=optiboot_atmega1284p_8MHz_osc.hex
mighty_int8_opt.bootloader.unlock_bits=0x3F
mighty_int8_opt.bootloader.lock_bits=0x0F
mighty_int8_opt.build.mcu=atmega1284p
mighty_int8_opt.build.f_cpu=8000000L
#mighty_int8_opt.build.core=arduino:arduino
mighty_int8_opt.build.core=standard
mighty_int8_opt.build.variant=standard

38 changes: 38 additions & 0 deletions bootloaders/optiboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,44 @@ atmega328_pro8_isp: LFUSE = FF
atmega328_pro8_isp: EFUSE = 05
atmega328_pro8_isp: isp

atmega1284_int8: TARGET = atmega1284p_8MHz_osc
atmega1284_int8: MCU_TARGET = atmega1284p
atmega1284_int8: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=57600' '-DBIGBOOT'
atmega1284_int8: AVR_FREQ = 8000000L
atmega1284_int8: LDSECTIONS = -Wl,--section-start=.text=0x1fc00
atmega1284_int8: $(PROGRAM)_atmega1284p_8MHz_osc.hex
atmega1284_int8: $(PROGRAM)_atmega1284p_8MHz_osc.lst

atmega1284_8MHz_osc_isp: atmega1284_int8
atmega1284_8MHz_osc_isp: TARGET = atmega1284p_8MHz_osc
atmega1284_8MHz_osc_isp: MCU_TARGET = atmega1284p
# 1024 byte boot
atmega1284_8MHz_osc_isp: HFUSE = DC
# Int. RC Osc. 6CK+65ms
atmega1284_8MHz_osc_isp: LFUSE = E2
# 2.7V brownout
atmega1284_8MHz_osc_isp: EFUSE = FD
atmega1284_8MHz_osc_isp: isp

atmega1284_8MHz: TARGET = atmega1284p_8MHz
atmega1284_8MHz: MCU_TARGET = atmega1284p
atmega1284_8MHz: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=57600' '-DBIGBOOT'
atmega1284_8MHz: AVR_FREQ = 8000000L
atmega1284_8MHz: LDSECTIONS = -Wl,--section-start=.text=0x1fc00
atmega1284_8MHz: $(PROGRAM)_atmega1284p_8MHz.hex
atmega1284_8MHz: $(PROGRAM)_atmega1284p_8MHz.lst

atmega1284_8MHz_isp: atmega1284_8MHz
atmega1284_8MHz_isp: TARGET = atmega1284p_8MHz
atmega1284_8MHz_isp: MCU_TARGET = atmega1284p
# 1024 byte boot
atmega1284_8MHz_isp: HFUSE = DC
# Int. RC Osc. 6CK+65ms
atmega1284_8MHz_isp: LFUSE = FF
# 2.7V brownout
atmega1284_8MHz_isp: EFUSE = FD
atmega1284_8MHz_isp: isp

# 1MHz clocked platforms
#
# These are capable of 9600 baud
Expand Down
36 changes: 36 additions & 0 deletions bootloaders/optiboot/optiboot_atmega1284p_8MHz.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
:020000000504F5
:020000021000EC
:10FC00000F92CDB7DEB7112484B714BE81FFF2D0B6
:10FC100085E08093810082E08093C00088E180933A
:10FC2000C10086E08093C20080E18093C4008EE032
:10FC3000CBD0209A26E088E19EEF31E090938500BA
:10FC40008093840036BBB09BFECF189AA8952150B4
:10FC5000A9F788249924DD24D394E1E1EE2E73E002
:10FC6000F72EA6D0813471F4A3D08983B3D08981D3
:10FC7000823809F48CC0813811F484E001C083E03B
:10FC800090D08CC0823411F484E103C0853419F41F
:10FC900085E0A8D083C0853591F48AD0082F10E084
:10FCA00087D090E0382F2227202B312B832F881FDD
:10FCB0008827881F8BBF4901880C991C6EC0863528
:10FCC00021F484E08FD080E0DBCF843609F041C09E
:10FCD0006FD06ED0C82E6CD080E0881680EE98066B
:10FCE00018F4F401F7BEE89500E011E061D0F801E6
:10FCF00081938F01CE16D1F7F0E08F16F0EE9F06BC
:10FD000018F0F401F7BEE89565D007B600FCFDCF0A
:10FD1000F401A0E0B1E02C9130E011968C911197A4
:10FD200090E0982F8827822B932B12960C01D7BE38
:10FD3000E8951124329682E0A030B80761F785E09B
:10FD4000F40187BFE89507B600FCFDCFE7BEE89554
:10FD500025C08437A9F42CD02BD0B82E29D03AD086
:10FD6000CB2C8401F80186911CD00F5F1F4FCA94E1
:10FD7000C9F70894811C911CBA948B0C911C0EC07D
:10FD8000853739F427D08EE10CD087E90AD085E099
:10FD900077CF813511F488E017D01CD080E101D0F5
:10FDA00060CF9091C00095FFFCCF8093C60008956E
:10FDB0008091C00087FFFCCF8091C00084FD01C00E
:10FDC000A8958091C6000895E0E6F0E098E1908360
:10FDD00080830895EDDF803219F088E0F5DFFFCFF2
:10FDE00084E1DFCFCF93C82FE3DFC150E9F7F2DF23
:0EFDF000CF91089580E0E8DFEE27FF27099409
:040000031000FC00ED
:00000001FF
36 changes: 36 additions & 0 deletions bootloaders/optiboot/optiboot_atmega1284p_8MHz_osc.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
:020000000504F5
:020000021000EC
:10FC00000F92CDB7DEB7112484B714BE81FFF2D0B6
:10FC100085E08093810082E08093C00088E180933A
:10FC2000C10086E08093C20080E18093C4008EE032
:10FC3000CBD0209A26E088E19EEF31E090938500BA
:10FC40008093840036BBB09BFECF189AA8952150B4
:10FC5000A9F788249924DD24D394E1E1EE2E73E002
:10FC6000F72EA6D0813471F4A3D08983B3D08981D3
:10FC7000823809F48CC0813811F484E001C083E03B
:10FC800090D08CC0823411F484E103C0853419F41F
:10FC900085E0A8D083C0853591F48AD0082F10E084
:10FCA00087D090E0382F2227202B312B832F881FDD
:10FCB0008827881F8BBF4901880C991C6EC0863528
:10FCC00021F484E08FD080E0DBCF843609F041C09E
:10FCD0006FD06ED0C82E6CD080E0881680EE98066B
:10FCE00018F4F401F7BEE89500E011E061D0F801E6
:10FCF00081938F01CE16D1F7F0E08F16F0EE9F06BC
:10FD000018F0F401F7BEE89565D007B600FCFDCF0A
:10FD1000F401A0E0B1E02C9130E011968C911197A4
:10FD200090E0982F8827822B932B12960C01D7BE38
:10FD3000E8951124329682E0A030B80761F785E09B
:10FD4000F40187BFE89507B600FCFDCFE7BEE89554
:10FD500025C08437A9F42CD02BD0B82E29D03AD086
:10FD6000CB2C8401F80186911CD00F5F1F4FCA94E1
:10FD7000C9F70894811C911CBA948B0C911C0EC07D
:10FD8000853739F427D08EE10CD087E90AD085E099
:10FD900077CF813511F488E017D01CD080E101D0F5
:10FDA00060CF9091C00095FFFCCF8093C60008956E
:10FDB0008091C00087FFFCCF8091C00084FD01C00E
:10FDC000A8958091C6000895E0E6F0E098E1908360
:10FDD00080830895EDDF803219F088E0F5DFFFCFF2
:10FDE00084E1DFCFCF93C82FE3DFC150E9F7F2DF23
:0EFDF000CF91089580E0E8DFEE27FF27099409
:040000031000FC00ED
:00000001FF
Loading