Created
April 26, 2013 21:37
-
-
Save matael/5470620 to your computer and use it in GitHub Desktop.
Makefile pour launchpad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Makefile | |
# matael, 2013-04-26 23:22 | |
# | |
# compilation | |
CC=msp430-gcc | |
CC_OPTS= -Os | |
MMCU_TYPE=msp430g2553 | |
# programming | |
MSPDBG=mspdebug | |
MSPDBG_LK=rf2500 | |
all: | |
$(CC) $(CC_OPTS) -mmcu=$(MMCU_TYPE) -o main.elf main.c | |
upload: | |
$(MSPDBG) $(MSPDBG_LK) "prog main.elf" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
il faut une structure de dossier particulière :
et pour compiler et uploader :