Skip to content

Instantly share code, notes, and snippets.

@apla apla/boards.txt
Last active Aug 29, 2015

Embed
What would you like to do?
msp430 arduino 1.5 support
# See: http://code.google.com/p/arduino/wiki/Platforms
menu.cpu=Processor
##############################################################
wizzi.name=wizzimote w/ cc430f5137
wizzi.build.core=wizzimote
wizzi.upload.tool=tilib_wizzi
wizzi.upload.protocol=tilib_wizzi
wizzi.upload.maximum_size=31104
wizzi.program.tool=tilib_wizzi
wizzi.program.protocol=tilib_wizzi
wizzi.program.maximum_size=31104
wizzi.erase.tool=tilib_wizzi
wizzi.erase.protocol=tilib_wizzi
wizzi.build.mcu=cc430f5137
wizzi.build.f_cpu=12000000L
wizzi.build.variant=wizzimote
wizzi.build.board=WIZZIMOTE
##############################################################
# from: https://groups.google.com/a/arduino.cc/forum/#!topic/developers/ZwxNPJHccQI
# Wizzimote Core and platform.
# ------------------------------
# For more info:
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
name=wizzimote MSP430 boards
version=1.5.6
# NRG compile variables
# ---------------------
# Default "compiler.path" is correct, change only if you want to overidde the initial value
compiler.path={runtime.ide.path}/hardware/tools/msp430/bin/
compiler.c.cmd=msp430-gcc
compiler.c.flags=-c -g -Os -Wall -ffunction-sections -fdata-sections -MMD
compiler.c.elf.flags=-Os -Wl,--gc-sections,-u,main
compiler.c.elf.cmd=msp430-gcc
compiler.S.flags=-c -g -assembler-with-cpp
compiler.cpp.cmd=msp430-g++
compiler.cpp.flags=-c -g -Os -Wall -ffunction-sections -fdata-sections -MMD -std=gnu++98 -fwrapv
-fomit-frame-pointer -ggdb3 -fno-rtti
compiler.ar.cmd=msp430-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=msp430-objcopy
compiler.objcopy.eep.flags=-O ihex -R .eeprom
compiler.elf2hex.flags=-O ihex -R .eeprom
compiler.elf2hex.cmd=msp430-objcopy
compiler.ldflags=
compiler.size.cmd=msp430-size
# this can be overriden in boards.txt
#build.extra_flags=-DENERGIA=10
# msp430 compile patterns
# --------------------
## Compile c files
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -mmcu={build.mcu}
-DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board}
-DARDUINO_ARCH_{build.arch} {includes} "{source_file}" -o "{object_file}"
## Compile c++ files
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags}
-mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version}
-DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {includes} "{source_file}" -o "{object_file}"
## Compile S files
recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mmcu={build.mcu}
-DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board}
-DARDUINO_ARCH_{build.arch} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
## Create archives
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags}
"{build.path}/{archive_file}" "{object_file}"
## Combine gc-sections, archives, and objects
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags}
-mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files}
"{build.path}/{archive_file}" "-L{build.path}" -lm
## Create eeprom
recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}"
{compiler.objcopy.eep.flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep"
## Create hex
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags}
"{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
## Compute size
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).*
recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).*
recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
# msp430 Uploader/Programmers tools
# ------------------------------
tools.tilib_wizzi.cmd.path={runtime.ide.path}\hardware\tools\msp430\mspdebug\mspdebug
#tools.tilib_wizzi.config.path={runtime.ide.path}\hardware\tools\msp430\bin\~/.mspdebug
#Upload
tools.tilib_wizzi.upload.params.verbose=
tools.tilib_wizzi.upload.params.quiet=-q
#tools.tilib_wizzi.upload.pattern={cmd.path} {upload.verbose} tilib --force-reset "prog
{build.path}/{build.project_name}.elf" "exit"
tools.tilib_wizzi.upload.pattern={cmd.path} {upload.verbose} tilib --force-reset "prog {build.path}/{build.project_name}.hex"
#Program
tools.tilib_wizzi.program.params.verbose=
tools.tilib_wizzi.program.params.quiet=-q
#tools.tilib_wizzi.program.pattern={cmd.path} "-C{config.path}" {program.verbose} tilib
--force-reset "prog {build.path}/{build.project_name}.elf" "exit"
#tools.tilib_wizzi.program.pattern={cmd.path} {program.verbose} tilib --force-reset "prog
{build.path}/{build.project_name}.elf" "exit"
tools.tilib_wizzi.program.pattern={cmd.path} {program.verbose} tilib --force-reset "prog {build.path}/{build.project_name}.hex"
#Erase
tools.tilib_wizzi.erase.params.verbose=
tools.tilib_wizzi.erase.params.quiet=-q
tools.tilib_wizzi.erase.pattern={cmd.path} {erase.verbose} tilib "erase all" "exit"
#Bootloader
#tools.tilib_wizzi.bootloader.params.verbose=
#tools.tilib_wizzi.bootloader.params.quiet=
#tools.tilib_wizzi.bootloader.pattern=
# USB Default Flags
# Default blank usb manufacturer will be filled it at compile time
# - from numeric vendor ID, set to Unknown otherwise
build.usb_manufacturer=
build.usb_product=
build.vid=
build.pid=
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid}
'-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
rf2500_wizzi.name=rf2500_wizzi
rf2500_wizzi.protocol=rf2500_wizzi
tilib_wizzi.name=tilib_wizzi
tilib_wizzi.protocol=tilib_wizzi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.