Hi all, I'm attempting to build the out-of-the-box keyboard emulator demo for the f5529 launchpad (available here) with mspgcc. But naturally, being a newbie, I've run into some trouble. The big idea here is to transplant the keyboard system from the example and use it to benchmark Project Euler solutions on the MSP430 (i.e. do the computation, spit the results into a text file).
My approach has been to use the following makefile in the project source directory. I've been able to use it to build and flash blinky projects to the launchpad, but nothing more complicated.
PROJ=main CC=msp430-gcc MCU=msp430f5529 CFLAGS=-I. -Os -g -Wall -mmcu=$(MCU) LDFLAGS=-g -mmcu=$(MCU) OBJS=main.o all:$(OBJS) @echo linking: $(PROJ).elf $(CC) $(LDFLAGS) -o $(PROJ).elf $(OBJS) @echo "--== Size of firmware ==--" msp430-size $(PROJ).elf %.o:%.c %.h @echo compiling file: $< $(CC) $(CFLAGS) -c $< clean: @echo cleaning $< rm -fr $(PROJ).elf $(OBJS) flash: all mspdebug tilib 'erase' 'load $(PROJ).elf' 'exit'
When I run the following, I get some funky errors. A whole lot of these (with different unfamiliar data types):
In file included from main.c:91:0: USB_API/USB_Common/usb.h:176:1: error: unknown type name ‘__no_init’
And finally this:
In file included from USB_API/USB_MSC_API/UsbMsc.h:38:0,
from main.c:93:
USB_API/USB_MSC_API/UsbMscScsi.h:38:25: fatal error: descriptors.h: No such file or directory
This is my first foray into writing makefiles, so there may be some masic background that I'm missing.
Can anyone offer any advice or suggestions? Thanks!