This repository can be used to start a new application project for the MSP432P401R MCU. The project can be imported into and built with Code Composer Studio (CCS), or, alternatively, cloned using git and built using a GCC toolchain in a GNU/Linux environment.
- A github account with an SSH key set up.
- Download and install
- Clone the repository using your favorite method (e.g. Git bash (recommended), Github Desktop, GitKraken) to a location of your liking.
- Open CCS
- In CCS: File > Import > Git > Projects from Git > Existing local repository
TODO
TODO
- A github account with an SSH key set up.
- gmake
- git
-
Download and install:
-
Open <SimpleLink SDK install location>/imports.mak and modify the following:
- Set
GCC_ARMCOMPILERto point to your GNU Arm Embedded Toolchain folder location. - Comment out all other variable declarations, except for those under 'For Linux'
- Set the
SIMPLELINK_MSP432_SDK_INSTALL_DIRenvironment variable to point to your SimpleLink SDK location.
- Set
imports.mak example:
#XDC_INSTALL_DIR ?= /home/username/xdctools_3_60_02_34_core
#SYSCONFIG_TOOL ?= /home/username/ccs930/ccs/utils/sysconfig/sysconfig_cli.sh
#FREERTOS_INSTALL_DIR ?= /home/username/FreeRTOSv10.1.1
#CCS_ARMCOMPILER ?= /home/username/ti/ti-cgt-arm_18.12.4.LTS
GCC_ARMCOMPILER ?= /home/username/gcc-arm-none-eabi-7-2017-q4-major
# For Linux
RM = rm -f
RMDIR = rm -rf
DEVNULL = /dev/null
ECHOBLANKLINE = echoEnvironment variable decleration example:
export SIMPLELINK_MSP432_SDK_INSTALL_DIR=/home/username/simplelink_msp432p4_sdk_3_40_01_02
- Clone the repository
git clone [email protected]:davincisatellite/application-template-msp432p401r.git
- Go into the 'gcc' folder in the project
cd application-template-msp432p401r
cd gcc
- Run gmake
make
- Run dslite.sh with the correct ccxml configuration file.
/home/username/ti/uniflash_8.2.0/dslite.sh --config=/path/to/MSP432P401R.ccxml blinkled-msp432p401r.out
Problem: When makeing
Makefile:1: /imports.mak: No such file or directory
make: *** No rule to make target '/imports.mak'. Stop.Fix:
Set SIMPLELINK_MSP432_SDK_INSTALL_DIR environment variable
Problem: When This is fixed by PR #24makeing
In file included from ../src/file.cpp:X:X:
../src/file.h:XX:XX: fatal error: driverlib.h: No such file or directory
#include <driverlib.h>
^~~~~~~~~~~~~
compilation terminated.Fix:
Replace <driverlib.h> with <ti/devices/msp432p4xx/driverlib/driverlib.h>