A basic guide to start with the MSP320 family and the GCC tools on Linux.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
421 B

2 years ago
2 years ago
  1. OBJECTS=Ejemplo.o
  2. GCC_DIR = /home/user/msp430-gcc/bin
  3. SUPPORT_FILE_DIRECTORY = /home/user/msp430-gcc/include
  4. DEVICE = msp430fr6989
  5. CC = $(GCC_DIR)/msp430-elf-gcc
  6. GDB = $(GCC_DIR)/msp430-elf-gdb
  7. CFLAGS = -I $(SUPPORT_FILE_DIRECTORY) -mmcu=$(DEVICE) -O2 -g
  8. LFLAGS = -L $(SUPPORT_FILE_DIRECTORY) -T $(DEVICE).ld
  9. all: ${OBJECTS}
  10. $(CC) $(CFLAGS) $(LFLAGS) $? -o $(DEVICE).out
  11. debug: all
  12. $(GDB) $(DEVICE).out