SLAU646F September 2015 – June 2020
MSP430 GCC uses the devices.csv
file that is included with the MSP430 GCC Support Files package to get the device
data for the device specified with the -mmcu option. This causes the source code to be built
for the correct ISA and hardware multiplier with any necessary symbols defined. This ensures
the correct operation of the toolchain. When using the -mmcu option, the toolchain
automatically selects the correct header files and linker scripts for the device specified.
MSP430 GCC uses a few different methods to find the support files (in the following precedence order):
export MSP430_GCC_INCLUDE_DIR=/home/user/ti/gcc/include
msp430-elf/include/devices/
directory within the MSP430 GCC
installation for the support files. Note that this "devices" directory does not exist in
the latest toolchain installations, so the "include" directory from the support files
package should be copied to this location. For example, on Linux:
cp -r /home/user/ti/gcc/include/ /home/user/ti/gcc/msp430-elf/include/devices/
The toolchain stops searching for support
files once it finds devices.csv
. The results may be different than
expected if one of the higher-precedence methods finds out-of-date support files, despite
newer support files being pointed to by one of the lower-precedence methods.