Skip to content
Permalink
Browse files

Add menu for Nano with Optiboot bootloader

Since we are now factory flashing obtiboot, 115200 is the new default upload speed. Adding a new entry to CPU menu is more explicit than adding an "upload speed" menu, and the bootloader path can be updated too.

Fixes #4492
  • Loading branch information...
facchinm committed Feb 19, 2018
1 parent 3d3bb38 commit 1cf34c8250658c5c4a5c488f7a7a0d7071e3430f
Showing with 17 additions and 2 deletions.
  1. +17 −2 hardware/arduino/avr/boards.txt
@@ -144,15 +144,30 @@ nano.menu.cpu.atmega328=ATmega328P

nano.menu.cpu.atmega328.upload.maximum_size=30720
nano.menu.cpu.atmega328.upload.maximum_data_size=2048
nano.menu.cpu.atmega328.upload.speed=57600
nano.menu.cpu.atmega328.upload.speed=115200

nano.menu.cpu.atmega328.bootloader.low_fuses=0xFF
nano.menu.cpu.atmega328.bootloader.high_fuses=0xDA
nano.menu.cpu.atmega328.bootloader.extended_fuses=0xFD
nano.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex
nano.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328.hex

nano.menu.cpu.atmega328.build.mcu=atmega328p

## Arduino Nano w/ ATmega328P (old bootloader)
## --------------------------
nano.menu.cpu.atmega328old=ATmega328P (Old Bootloader)

nano.menu.cpu.atmega328old.upload.maximum_size=30720
nano.menu.cpu.atmega328old.upload.maximum_data_size=2048
nano.menu.cpu.atmega328old.upload.speed=57600

nano.menu.cpu.atmega328old.bootloader.low_fuses=0xFF
nano.menu.cpu.atmega328old.bootloader.high_fuses=0xDA
nano.menu.cpu.atmega328old.bootloader.extended_fuses=0xFD
nano.menu.cpu.atmega328old.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex

nano.menu.cpu.atmega328old.build.mcu=atmega328p

## Arduino Nano w/ ATmega168
## -------------------------
nano.menu.cpu.atmega168=ATmega168

3 comments on commit 1cf34c8

@per1234

This comment has been minimized.

Copy link
Collaborator

per1234 replied Feb 19, 2018

@facchinm shouldn't you also do:

nano.menu.cpu.atmega328.upload.maximum_size=32256
nano.menu.cpu.atmega328.bootloader.high_fuses=0xDE
@facchinm

This comment has been minimized.

Copy link
Member Author

facchinm replied Feb 19, 2018

Just checked with the production team, the new boards have 0xDA as high byte 🙁 So the bootloader size is still bigger than needed... Leaving as is for the moment.

@bxparks

This comment has been minimized.

Copy link

bxparks replied May 2, 2018

Hi,

When this was released in 1.6.21, it broke the uploading to all my Nano's. At the time, I didn't know how to debug this problem, so I stayed on 1.6.20. Eventually, I got tired of seeing the "You have new boards and libraries" pop-up box on every sketch load, so I finally upgraded to 1.6.21 and decided to track down this problem. Here I am.

It looks like the solution is for me to manually select "ATmega328P (Old Bootloader)" in the Tools/Processor menu?

For future reference, is there some place where end-users can find the Release Notes, README, or something when a new core version is released? Your release process isn't too obvious to me.

Thanks,
Brian

Please sign in to comment.
You can’t perform that action at this time.