Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.44 KB

msp430_none_elf.md

File metadata and controls

46 lines (31 loc) · 1.44 KB

msp430-none-elf

Tier: 3

16-bit MSP430 microcontrollers

Target maintainers

Requirements

TI's MSP430 GCC compiler, version 8.3.0 or greater, must be installed, with msp430-elf-gcc visible on your path. You must specify a linker script; the msp430-rt crate provides a suitable one. Refer to msp430-quickstart for detailed instructions.

A nightly Rust is required for the forseeable future until at least #3246 and #38487 are resolved.

Building the target

Rust does not ship pre-built versions of libcore for this target. Using a nightly Cargo version, add the following to your .cargo/config.toml file:

[unstable]
build-std = ["core"]

Testing

This is a cross-compiled no-std target, which must be run either in a simulator or by programming them onto suitable hardware. It is not possible to run the Rust testsuite on this target.

Cross-compilation toolchains and C code

This target supports interlinking with C code compiled using the TI MSP430 GCC compiler, but cross-language LTO is not supported.