Wiblocks --- Boards.txt File

Updating boards.txt to Include Wiblock Boards

The majority of wiblock boards that are based on the Atmel microcontrollers run at 3.3V. Operation at 3.3V requires a lower operating frequency which for wiblock boards is 12MHz. As of Arduino-0017 all of the choices were for boards operating at 8MHz or 16MHz. Choosing an operating frequency that is different from the actual frequency requires a scaling factor to be applied to adjust for the difference between the two. The most common library that relies on the frequency setting is the Serial library. Since you may be using other libraries that use the operating frequency variable it is best to add entries for the wiblock boards.


Updating the boards.txt file is simple a matter of adding lines of text to the file. wiblocks-boards.zip contains changes for all the wiblock boards.

  1. Find your boards.txt file. This should be located in the hardware sub-directory where you installed the Arduino tools.
  2. Make a backup copy of the orginal file.
  3. Add the new entries to the original file. I prefer to make additions at the end of the file.

168 Based Boards

wiblocks_168.name=wiblocks 168 at 12MHz
wiblocks_168.upload.protocol=stk500
wiblocks_168.upload.maximum_size=14336
wiblocks_168.upload.speed=19200
wiblocks_168.bootloader.low_fuses=0xff
wiblocks_168.bootloader.high_fuses=0xdd
wiblocks_168.bootloader.extended_fuses=0x00
wiblocks_168.bootloader.path=atmega168
wiblocks_168.bootloader.file=ATmegaBOOT_168_zb1.hex
wiblocks_168.bootloader.unlock_bits=0x3F
wiblocks_168.bootloader.lock_bits=0x0F
wiblocks_168.build.mcu=atmega168
wiblocks_168.build.f_cpu=12000000L
wiblocks_168.build.core=arduino

328 Based Boards

wiblocks_328.name=wiblocks 328 at 12MHz
wiblocks_328.upload.protocol=stk500
wiblocks_328.upload.maximum_size=30720
wiblocks_328.upload.speed=19200
wiblocks_328.bootloader.low_fuses=0xff
wiblocks_328.bootloader.high_fuses=0xdd
wiblocks_328.bootloader.extended_fuses=0x00
wiblocks_328.bootloader.path=atmega328
wiblocks_328.bootloader.file=ATmegaBOOT_328_zb1.hex
wiblocks_328.bootloader.unlock_bits=0x3F
wiblocks_328.bootloader.lock_bits=0x0F
wiblocks_328.build.mcu=atmega328p
wiblocks_328.build.f_cpu=12000000L
wiblocks_328.build.core=arduino

644 Based Boards

wiblocks_644.name=wiblocks 644 at 12MHz
wiblocks_644.upload.protocol=stk500
wiblocks_644.upload.maximum_size=61440
wiblocks_644.upload.speed=38400
wiblocks_644.bootloader.low_fuses=0xFF
wiblocks_644.bootloader.high_fuses=0xDA
wiblocks_644.bootloader.extended_fuses=0xFD
wiblocks_644.bootloader.path=atmega644p
wiblocks_644.bootloader.file=ATmegaBOOT_644P_NB2.hex
wiblocks_644.bootloader.unlock_bits=0x3F
wiblocks_644.bootloader.lock_bits=0x0F
wiblocks_644.build.mcu=atmega644p
wiblocks_644.build.f_cpu=12000000L
wiblocks_644.build.core=sanguino
wiblocks_644.verbose=false