[solved]Arduino IDE boards.txt. change

hi @all
i change the entries like this:

Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328

-------------------------------------------------

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.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.build.mcu=atmega328p
pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L

Arduino Pro Mini HP (5V, 16 MHz) w/ ATmega328

-------------------------------------------------

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

pro.menu.cpu.16MHzatmega328.upload.maximum_size=32256
pro.menu.cpu.16MHzatmega328.upload.maximum_data_size=2048
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=optiboot/optiboot_atmega328.hex

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

So i copied the first entry into a second and hoped that under Tools->Board "Arduino Pro or Pro Mini" the listed Processors are now 5 (with my entry). But there are still 4 entries with my entry first but the copied one vanished. What did i do wrong?

I do this to make a quick change between the "normal" bootloader and the optiboot for the Pro Mini.

Any suggestions are welcome
thx
hape

Each menu option needs to have a unique OPTION_ID. In your example the ATmega328 (5V, 16 MHz) and ATmega328 HP (5V, 16 MHz) options both use the 16MHzatmega328 OPTION_ID so the second one overwrites the first one. So you just need to change the OPTION_ID on all lines of the second option to something like 16MHzatmega328HP. For more information see Arduino IDE 1.5 3rd party Hardware specification · arduino/Arduino Wiki · GitHub

hi @Pert
ok now i understood. Thx a lot for your help.
It was not such self explaining as i hoped :slight_smile:
Now everything works like it should.
hape