Manually add configuration to board.txt

I want to add an additional configuration to the boards.txt for the "Arduino Pro or Pro Mini"

I will usese for some project with watchdog the optiboot bootloader

i have change the first entry for the 16MHZ 5V like this (the + sign is not in the boards txt, this is the added line)

pro.menu.cpu.16MHzatmega328=ATmega328 (5V, 16 MHz)*

pro.menu.cpu.16MHzatmega328.upload.maximum_size=30720*
pro.menu.cpu.16MHzatmega328.upload.maximum_data_size=2048*
#pro.menu.cpu.16MHzatmega328.upload.speed=57600*
+pro.menu.cpu.16MHzatmega328.upload.speed=115200*

pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF*
pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA*
pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x05*
#pro.menu.cpu.16MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex*
+pro.menu.cpu.16MHzatmega328.bootloader.file=optiboot/optiboot_atmega328.hex*

pro.menu.cpu.16MHzatmega328.build.mcu=atmega328p*
pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L*

it works fine, in my next step i added a new entry with a unique name

pro.menu.cpu.16MHzatmega328=ATmega328 (5V, 16 MHz) opti*

pro.menu.cpu.op16MHzatmega328.upload.maximum_size=30720*
pro.menu.cpu.op16MHzatmega328.upload.maximum_data_size=2048*
pro.menu.cpu.op16MHzatmega328.upload.speed=115200*

pro.menu.cpu.op16MHzatmega328.bootloader.low_fuses=0xFF*
pro.menu.cpu.op16MHzatmega328.bootloader.high_fuses=0xDA*
pro.menu.cpu.op16MHzatmega328.bootloader.extended_fuses=0x05*
pro.menu.cpu.op16MHzatmega328.bootloader.file=optiboot/optiboot_atmega328.hex*

pro.menu.cpu.op16MHzatmega328.build.mcu=atmega328p*
pro.menu.cpu.op16MHzatmega328.build.f_cpu=16000000L*

unfortunalty this will not work

i get this error message (error to burn the bootoader)

"Fehler beim Brennen des Bootloaders.
avrdude: AVR Part "{build.mcu}" not found.

Valid parts are:
uc3a0512 = AT32UC3A0512
c128 = AT90CAN128
c32 = AT90CAN32
...
"
is there annother file which is my unique name "op16MHzatmega328" linked to

thank in forwar for your support, i have no idea

Lutz

issue seems solved, I don't know why, I think it is the same like before, but during the test with the 5th entry one connection was wrong, after this the system rest of the computer maybe the solution
But this is only about the error message to burn the bootload. unfortunately the upload of the sktech does not work.



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

pro.name=Arduino Pro or Pro Mini

pro.upload.tool=avrdude
pro.upload.protocol=arduino

pro.bootloader.tool=avrdude
pro.bootloader.unlock_bits=0x3F
pro.bootloader.lock_bits=0x0F

pro.build.board=AVR_PRO
pro.build.core=arduino
pro.build.variant=eightanaloginputs

## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328P
## --------------------------------------------------
pro.menu.cpu.16MHzatmega328=ATmega328P (5V, 16 MHz) 

pro.menu.cpu.16MHzatmega328.upload.maximum_size=30720
pro.menu.cpu.16MHzatmega328.upload.maximum_data_size=2048
pro.menu.cpu.16MHzatmega328.upload.speed=57600

pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0xFD
pro.menu.cpu.16MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex

pro.menu.cpu.16MHzatmega328.build.mcu=atmega328p
pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L

## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328P
## ---------------------------------------------------
pro.menu.cpu.8MHzatmega328=ATmega328P (3.3V, 8 MHz)

pro.menu.cpu.8MHzatmega328.upload.maximum_size=30720
pro.menu.cpu.8MHzatmega328.upload.maximum_data_size=2048
pro.menu.cpu.8MHzatmega328.upload.speed=57600

pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xFF
pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0xFD
pro.menu.cpu.8MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex

pro.menu.cpu.8MHzatmega328.build.mcu=atmega328p
pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L

## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168
## -------------------------------------------------
pro.menu.cpu.16MHzatmega168=ATmega168 (5V, 16 MHz)

pro.menu.cpu.16MHzatmega168.upload.maximum_size=14336
pro.menu.cpu.16MHzatmega168.upload.maximum_data_size=1024
pro.menu.cpu.16MHzatmega168.upload.speed=19200

pro.menu.cpu.16MHzatmega168.bootloader.low_fuses=0xff
pro.menu.cpu.16MHzatmega168.bootloader.high_fuses=0xdd
pro.menu.cpu.16MHzatmega168.bootloader.extended_fuses=0xF8
pro.menu.cpu.16MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex

pro.menu.cpu.16MHzatmega168.build.mcu=atmega168
pro.menu.cpu.16MHzatmega168.build.f_cpu=16000000L

## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168
## --------------------------------------------------
pro.menu.cpu.8MHzatmega168=ATmega168 (3.3V, 8 MHz)

pro.menu.cpu.8MHzatmega168.upload.maximum_size=14336
pro.menu.cpu.8MHzatmega168.upload.maximum_data_size=1024
pro.menu.cpu.8MHzatmega168.upload.speed=19200

pro.menu.cpu.8MHzatmega168.bootloader.low_fuses=0xc6
pro.menu.cpu.8MHzatmega168.bootloader.high_fuses=0xdd
pro.menu.cpu.8MHzatmega168.bootloader.extended_fuses=0xF8
pro.menu.cpu.8MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_pro_8MHz.hex

pro.menu.cpu.8MHzatmega168.build.mcu=atmega168
pro.menu.cpu.8MHzatmega168.build.f_cpu=8000000L

## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328P optibootloader
## --------------------------------------------------
pro.menu.cpu.16MHzatmega328opt=ATmega328P (5V, 16 MHz) optiboot

pro.menu.cpu.16MHzatmega328opt.upload.maximum_size=30720
pro.menu.cpu.16MHzatmega328opt.upload.maximum_data_size=2048
pro.menu.cpu.16MHzatmega328opt.upload.speed=115200

pro.menu.cpu.16MHzatmega328opt.bootloader.low_fuses=0xFF
pro.menu.cpu.16MHzatmega328opt.bootloader.high_fuses=0xDA
pro.menu.cpu.16MHzatmega328opt.bootloader.extended_fuses=0xFD
pro.menu.cpu.16MHzatmega328opt.bootloader.file=optiboot/optiboot_atmega328.hex

pro.menu.cpu.16MHzatmega328opt.build.mcu=atmega328p
pro.menu.cpu.16MHzatmega328opt.build.f_cpu=16000000L

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

yes such a foolishness, i have 20 arduino pro mini 16Mhz 5V and one 8Mhz 3.3V, it works fine with the 5V type but in the application mistakenly my only 3.3V type

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.