I'm writing this blog hoping to provide a quick and painless procedure to get started with Texas Instrument's MSP430 LaunchPad board on Mac OS X. Their support for OSX is quite poor to say the least. I'm providing a self-contained package so that you don't have to waste your time like I did all day. Just download the following file, unzip and install:
- Download their temperature demo. Unzip.
- Open a Terminal, cd to the folder you just unzipped, then run
If you don't have 'make', just install Xcode (I know, it's overkill, but...).
- You should get a 'main.elf', now upload it to the LaunchPad with:
sudo mspdebug rf2500 "prog main.elf"
- Done! You won't notice much of a change since you just uploaded the same blinking red/green demo that came pre-loaded, but you get the idea :)
- You don't get a serial interface like Windows/Linux users do. The official wiki(yes, the official wiki) will tell you to install this driver, but you'll just waste your time yet again. This information is not only misleading, but absolutely wrong, that driver was written for the TUSB3410UARTPDK and will not work with the LaunchPad.
- You can only program the board once, and then it won't get recognized again by mspdebug until you unplug it and plug it back in.Edit: fixed! download the lastest package.
- The mspgcc4 toolchain (current version: 20101006), which includes GCC/G++ 4.4.3, GDB 7.0.1 and related bintuils.
- mspdebug (current version: 0.12). This is a programmer/debugger for the MSP430 devices. It's actually very neat, you can perform on-chip disassembly, debugging and step-by-step execution. I think you can piggyback gdb on it and debug from gdb or any of its front-ends, but I haven't actually tried it. Again, I included the binaries so that you don't have to deal with the homebrew/darwinports/libusb stuff yourself.
- An especially crafted driver by Bill Westfield (westfw). This is sort of a "null" driver so that OSX doesn't take exclusive control over the LaunchPad when you plug it in.