Using a MSP-EXP430G2 LaunchPad Board with Linux
End of June I ordered a MSP-EXP430G2 LaunchPad board (see ) directly from Texas Instruments ($4,30 with shipping free of charge), but due to the high demand, I was told that my unit would arrive by end of August or begin of September. Usually I start with the software after having hardware in my hands, but now I have to do it the other way round …
My development platform of choice is Linux, so the MSP430 toolchain is the first thing to do. After some experiments to compile the toolchain (which failed, since the native MSP430 support is not included in the official GCC source tree), I downloaded the pre-compiled GCC 4.4.3 toolchain from .
MSPDebug was downloaded from . Compiling the package showed some compile errors
In file included from main.c:32: usbutil.h:22:17: error: usb.h: No such file or directory main.c: In function ‘parse_cmdline_args’: main.c:352: warning: implicit declaration of function ‘usb_init’ main.c:353: warning: implicit declaration of function ‘usb_find_busses’ main.c:354: warning: implicit declaration of function ‘usb_find_devices’ make: *** [main.o] Error 1
On my machine with Ubuntu 10.04 LTS Desktop “/usr/include/usb.h” was missing. To correct this, I copied the file over from another 10.04 LTS Desktop system. In retrospect, this may not be necessary, when fixing the third error (see below).
The next error was:
cproc.c:27:31: error: readline/readline.h: No such file or directory cproc.c:28:30: error: readline/history.h: No such file or directory cproc.c: In function ‘cproc_reader_loop’: cproc.c:575: warning: implicit declaration of function ‘readline’ cproc.c:575: warning: initialization makes pointer from integer without a cast cproc.c:580: warning: implicit declaration of function ‘add_history’ make: *** [cproc.o] Error 1
This was corrected by installing “libreadline6-dev” from the Synaptic Package manager.
One further error showed up:
/usr/bin/ld: cannot find -lusb collect2: ld returned 1 exit status make: *** [mspdebug] Error 1
This was corrected by installing “libusb-dev” from the Synaptic Package manager. ‘mspdebug’ compiled and linked correctly now.
Stay tuned until my LaunchPad board arrives.
About this entry
You’re currently reading “Using a MSP-EXP430G2 LaunchPad Board with Linux,” an entry on ScannerPrincess
- 07.23.10 / 10am
- Development Tools