Skip to content

Linux Serial Communication

RickKimball edited this page Jul 18, 2012 · 1 revision

Many people find the using /dev/ttyACM0 with the stock cdc-acm driver for linux doesn't work well with the launchpad. Gerald Stanje provided a patch to the cdc_acm driver for both 2.6 and 3.0 kernels. It addresses the problem in Energia that causes the User Interface to hang up. Read about this patch and the problems with the stock cdc-acm driver on this e2e.ti.com forum post for more information:

http://e2e.ti.com/support/low_power_rf/f/156/t/53610.aspx

If you just want to get going and fix the problem, download the cdc-acm patch from here:

http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/156/7028.msp430_5F00_patch.zip

Gerald writes:

Hello,

i am providing a method without recompiling the kernel...i use Dynamic 
Kernel Module Support to load the modified cdcacm driver

i have tested this on ubuntu! please let me know if it works on your
linux machine!

1.) install dkms, install kernel headers
2.) copy the folder cdcacm-0.1 to /usr/src
3.) run ./install.sh from /usr/src
3.) connect msp430 rf2500 to usb
4.) stty -F /dev/ttyACM0 raw speed 9600
5.) cat /dev/ttyACM0 ... you should see some output
Clone this wiki locally