Skip to content

davincisatellite/msp-flightsoftware

Repository files navigation

Application Template (MSP432P401R)

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.

Using Code Composer Studio

Prerequisites

  • A github account with an SSH key set up.

Setup

  1. Download and install

Importing

  1. Clone the repository using your favorite method (e.g. Git bash (recommended), Github Desktop, GitKraken) to a location of your liking.
  2. Open CCS
  3. In CCS: File > Import > Git > Projects from Git > Existing local repository

Building

TODO

Flashing

TODO

Using GCC/GMake

Prerequisites

  • A github account with an SSH key set up.
  • gmake
  • git

Setup

  1. Download and install:

  2. Open <SimpleLink SDK install location>/imports.mak and modify the following:

    • Set GCC_ARMCOMPILER to 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_DIR environment variable to point to your SimpleLink SDK location.

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 = echo

Environment variable decleration example:

export SIMPLELINK_MSP432_SDK_INSTALL_DIR=/home/username/simplelink_msp432p4_sdk_3_40_01_02

Importing

  1. Clone the repository
git clone [email protected]:davincisatellite/application-template-msp432p401r.git

Building

  1. Go into the 'gcc' folder in the project
cd application-template-msp432p401r
cd gcc
  1. Run gmake
make

Flashing

  1. 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

Common problems and fixes

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 makeing This is fixed by PR #24

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors