Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
makefile for msp430 gcc on osx
GCC_DIR = ~/ti/gcc/bin
SUPPORT_FILE_DIRECTORY = ~/ti/gcc/include
DEVICE = msp430g2231
CC = $(GCC_DIR)/msp430-elf-gcc
GDB = $(GCC_DIR)/msp430-elf-gdb
all: ${OBJECTS}
$(CC) $(CFLAGS) $(LFLAGS) $? -o $(DEVICE).out
debug: all
$(GDB) $(DEVICE).out

This comment has been minimized.

Copy link

thomasgruebler commented Oct 31, 2017

Good to know, if you have already CCS and GCC inside CCS installed, the directories look (depending on version) like this:

GCC_DIR = /Applications/ti/ccsv7/tools/compiler/msp430-gcc-
SUPPORT_FILE_DIRECTORY = /Applications/ti/ccsv7/ccs_base/msp430/include_gcc
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.