Fix broken USB serial on TI MSP430 Launchpad 

MSP 430 Launchpad is a very cheap development board for TI's MPS430 low power microcontrolers. It features onboard USB in-circuit-debugger with USB to serial adapter. Although development tools work in linux quite well, the USB to serial adapter is somewhat broken that it works correctly on Windows only.

The problem has been there for a while, making linux users unhappy. Today I finally found a patch for linux cdc-acm driver in Arch linux repository. Usage is quite simple:
$ wget
$ tar xzvf msp430-launchpad-uart-fix.tar.gz
$ cd msp430-launchpad-uart-fix
$ tar xzvf msp430-launchpad-uart-fix-3.tar.gz
$ cd msp430-launchpad-uart-fix-3/
$ make
make -C /lib/modules/3.5.3/build M="$(pwd)" modules
make[1]: Entering directory `/usr/src/linux-3.5.3'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-3.5.3'
$ sudo cp cdc-acm.ko /lib/modules/$(uname -r)/misc/
$ cd /lib/modules/$(uname -r)/
$ sudo mv kernel/drivers/usb/class/cdc-acm.ko kernel/drivers/
$ sudo depmod -a
$ sudo rmmod cdc-acm
$ sudo modprobe cdc-acm
After this change, the serial port works as expected. I recommend testing it out with something simple like MSP430-softUART.


Pro tento záznam nejsou komentáře povoleny.