Jump to content
43oh

LaunchPad OSX USB drivers (CDC /VCP)


Recommended Posts

Just saw your post above... Thanks for your reply and all your informations!! I like your idea for the port name ;) I think it will be relevant in the software I want to write as well! Keep the good work !!

 

But right now, I was just using MaxMSP to see if I can get the launchpad to communicate with the computer... I was just reading the output of the serial object... So not so much at the moment, but I planned to use a microcontroller for my master degree in music composition and was struggling to decide which microcontroller to use. Right now, I think the launchpad could be a good one to use but still need some thought ... What I want to do is to build an hyper guitar and have multiple sensors connected and use the microcontroller to receive and send data between the guitar and the computer... Right now I'm just using MaxMSP for fast debugging and testing, but I planned to make my own software in Python and using a module for digital sound processing named pyo that one of my tutor made (http://code.google.com/p/pyo/). So, a lot fun on my way ;) !!

 

For bluehash, MaxMSP is a visual programming environment for music and multimedia developped by Cycling74. You connect objects together to build the patch ("program") like in Quartz Composer. It could be used as a parser for Arduino since there are objects for serial communication as well as some made by user especially to communicate with and Arduino (see Maxuino to name one)

Link to post
Share on other sites
  • Replies 88
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi All,   Soucre code is hosted on Google code. http://code.google.com/p/msp430lpcdc/   Here is the latest link to the Driver. - Version 1.0.3b http://code.google.com/p/msp430lpcdc/do ... g&

Finally mashed together a complete set of code to use as base, using mostly apple's code.   Current status.   The KEXT attached nicely to interface, with a BSD TTY port exposed. on the first look

Got a good working commit today, but need to press connect and disconnect a few times to get it to work. Next is clean up, since we know what device we are dealing with, I will remove all unnecessary

Posted Images

I just installed version 1.0.3b and rebooted on OSX Lion 10.7.2 . Then I programmed a launchpad with the temperature demo to ensure that something was spitting out serial.

 

I don't see any /dev/tty.usb* entries. IORegistryExplorer shows nothing but the MSP-FET430 -> IOService . No UARTs or anything like that (although more shows up when I run mspdebug and msp430-gdb).

 

There is the word 'codeless' in IOPersonalityPulisher String westfw.ex430rf2500.codeless . Is that the 'codeless kext' that I am supposed to remove? (And how do I do that?)

 

Thanks for all the good work.

 

post-6706-135135518249_thumb.png

Link to post
Share on other sites

Yes, you have a code less kext and you don't need it anymore. The USB driver will take care of the blocking the HID ports as well.

 

Open up Terminal and type in :-

 

sudo rm -rf /System/Library/Extensions/ez430rf2500.kext

 

wait awhile for the boot cache to rebuild and reboot to be safe.

 

Let me know how this works for you.

 

Regards,

Terence

 

I just installed version 1.0.3b and rebooted on OSX Lion 10.7.2 . Then I programmed a launchpad with the temperature demo to ensure that something was spitting out serial.

 

I don't see any /dev/tty.usb* entries. IORegistryExplorer shows nothing but the MSP-FET430 -> IOService . No UARTs or anything like that (although more shows up when I run mspdebug and msp430-gdb).

 

There is the word 'codeless' in IOPersonalityPulisher String westfw.ex430rf2500.codeless . Is that the 'codeless kext' that I am supposed to remove? (And how do I do that?)

 

Thanks for all the good work.

 

[attachment=0]IOServReg screenshot.png[/attachment]

Link to post
Share on other sites
Yes, you have a code less kext and you don't need it anymore. The USB driver will take care of the blocking the HID ports as well.

 

Open up Terminal and type in :-

 

sudo rm -rf /System/Library/Extensions/ez430rf2500.kext

 

wait awhile for the boot cache to rebuild and reboot to be safe.

 

Let me know how this works for you.

 

 

That works great. Thank you.

 

I see /dev/tty.uart- and can read it in python with import serial or with screen.

 

I went through half a dozen methods to try to get the MSP toolchain on my Mac (Fink was the one that finally worked) and one of the other ones included installing the code less kext. I had forgotten.

Link to post
Share on other sites

Great.. Glad it works.. the "hex strings" is the serial no. of the device you plugged into your Mac, so it will be the same whichever port you plug it in, I am working on a project with multiple LPs with different settings, in this way I can keep track of which is which.

 

Yes, you have a code less kext and you don't need it anymore. The USB driver will take care of the blocking the HID ports as well.

 

Open up Terminal and type in :-

 

sudo rm -rf /System/Library/Extensions/ez430rf2500.kext

 

wait awhile for the boot cache to rebuild and reboot to be safe.

 

Let me know how this works for you.

 

 

That works great. Thank you.

 

 

 

I see /dev/tty.uart- and can read it in python with import serial or with screen.

 

I went through half a dozen methods to try to get the MSP toolchain on my Mac (Fink was the one that finally worked) and one of the other ones included installing the code less kext. I had forgotten.

Link to post
Share on other sites
  • 2 weeks later...
  • 3 weeks later...
  • 4 weeks later...

I was all like:

-Dude! This guy is awesome, just what I needed.

-NOOOOO!!!! Not working for me "fet: FET returned error code 4 (Could not find device (or device not supported))"

-Hmmm, is it just me or is that notch on that chip facing the wrong way.

*turn*

YEY! It works!

 

I cant't thank you enough for this PentiumPC, truly awesome!

Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...

I had a working serial driver and now I don't. I have tried restarting, removing and reinstalling the kext, all to no avail. Alas as it's been a few months between uses of the driver I've no idea what's changed to break it.

 

My system is a 2011 11" MacBook Air running 10.7.2 (Darwin Kernel Version 11.2.0). I installed MSP430LPCDC 1.0.3b.zip from http://code.google.com/p/osx-launchpad/downloads/list. I am using the LaunchPad board.

 

/System/Library/Extensions/MSP430LPCDC.kext exists, doesn't show up in kextstat after boot. I can manually load it with kextload and it shows up in kextstat output, but only briefly:

 

$ sudo kextload /System/Library/Extensions/MSP430LPCDC.kext
$  kextstat | grep 430
  22    3 0xffffff7f80b43000 0x4000     0x4000     com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>
 114    0 0xffffff7f8079b000 0x8000     0x8000     com.ti.driver.MSP430LP (1.0.3) <90 27 5 4 3>

 

After a little time (from around a minute to ten minutes or so) com.ti.driver.MSP430LP disappears from kextstat output and when I install it again it gets a new index:

 

  113    0 0xffffff7f80840000 0x35000    0x35000    com.apple.filesystems.smbfs (1.7.0) <109 7 6 5 4 3 1>
 116    0 0xffffff7f807b7000 0x8000     0x8000     com.ti.driver.MSP430LP (1.0.3) <90 27 5 4 3>

 

The LaunchPad is never recognised (whether I have it plugged in when I load the kext or not) and nothing shows up in System Report under USB or in tty:

 

$ ls /dev/tty.*
/dev/tty.Bluetooth-Modem	/dev/tty.Bluetooth-PDA-Sync

 

The only thing I can see in the logs that might be relevant is the following in system.log:

 

Jan 31 20:34:58 eider com.apple.kextd[10]: Error: Kext com.apple.driver.MSP430LP - not found/unable to create.

 

There are no other peripherals attached to my Mac and I don't have the code less kext (ez430rf2500 or its ilk) installed.

 

Any advice gratefully received!

 

A complete list of installed kexts on my system is shown below:

Index Refs Address            Size       Wired      Name (Version) 
   1   66 0xffffff7f80742000 0x683c     0x683c     com.apple.kpi.bsd (11.2.0)
   2    6 0xffffff7f8072e000 0x3d0      0x3d0      com.apple.kpi.dsep (11.2.0)
   3   92 0xffffff7f8074c000 0x1b9d8    0x1b9d8    com.apple.kpi.iokit (11.2.0)
   4   96 0xffffff7f80738000 0x9b54     0x9b54     com.apple.kpi.libkern (11.2.0)
   5   85 0xffffff7f8072f000 0x88c      0x88c      com.apple.kpi.mach (11.2.0)
   6   33 0xffffff7f80730000 0x4938     0x4938     com.apple.kpi.private (11.2.0)
   7   52 0xffffff7f80735000 0x22a0     0x22a0     com.apple.kpi.unsupported (11.2.0)
   8   19 0xffffff7f80b9e000 0x7000     0x7000     com.apple.iokit.IOACPIFamily (1.4) <7 6 4 3>
   9   26 0xffffff7f80822000 0x1e000    0x1e000    com.apple.iokit.IOPCIFamily (2.6.7) <7 6 5 4 3>
  10    2 0xffffff7f819cc000 0x58000    0x58000    com.apple.driver.AppleACPIPlatform (1.4) <9 8 7 6 5 4 3 1>
  11    1 0xffffff7f809a5000 0xc000     0xc000     com.apple.driver.AppleKeyStore (28.18) <7 6 5 4 3 1>
  12    4 0xffffff7f80768000 0x25000    0x25000    com.apple.iokit.IOStorageFamily (1.7) <7 6 5 4 3 1>
  13    0 0xffffff7f80c24000 0x19000    0x19000    com.apple.driver.DiskImages (331) <12 7 6 5 4 3 1>
  14    0 0xffffff7f8170e000 0x2a000    0x2a000    com.apple.driver.AppleIntelCPUPowerManagement (167.1.0) <7 6 5 4 3 1>
  15    0 0xffffff7f80749000 0x3000     0x3000     com.apple.security.TMSafetyNet (7) <7 6 5 4 2 1>
  16    2 0xffffff7f807cc000 0x4000     0x4000     com.apple.kext.AppleMatch (1.0.0d1) <4 1>
  17    1 0xffffff7f807d0000 0x11000    0x11000    com.apple.security.sandbox (165.3) <16 7 6 5 4 3 2 1>
  18    0 0xffffff7f807e1000 0x5000     0x5000     com.apple.security.quarantine (1) <17 16 7 6 5 4 2 1>
  19    0 0xffffff7f81a33000 0x8000     0x8000     com.apple.nke.applicationfirewall (3.2.30) <7 6 5 4 3 1>
  20    0 0xffffff7f8170a000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (167.1.0) <7 6 5 4 3 1>
  21    0 0xffffff7f819a9000 0x3000     0x3000     com.apple.driver.AppleAPIC (1.5) <4 3>
  22    3 0xffffff7f80b43000 0x4000     0x4000     com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>
  23    0 0xffffff7f81a24000 0x7000     0x7000     com.apple.driver.AppleACPIEC (1.4) <22 10 8 5 4 3>
  24    0 0xffffff7f81503000 0x4000     0x4000     com.apple.driver.AppleSMBIOS (1.7) <7 4 3>
  25    0 0xffffff7f81740000 0x3000     0x3000     com.apple.driver.AppleHPET (1.6) <8 7 5 4 3>
  26    0 0xffffff7f81528000 0x7000     0x7000     com.apple.driver.AppleRTC (1.4) <8 5 4 3 1>
  27   12 0xffffff7f80942000 0x4f000    0x4f000    com.apple.iokit.IOUSBFamily (4.5.5) <9 7 5 4 3 1>
  29    6 0xffffff7f809b1000 0x6b000    0x6b000    com.apple.iokit.IOHIDFamily (1.7.1) <11 7 6 5 4 3 2 1>
  30    0 0xffffff7f81a2d000 0x4000     0x4000     com.apple.driver.AppleACPIButtons (1.4) <29 10 8 7 6 5 4 3 1>
  31    1 0xffffff7f8197f000 0x4000     0x4000     com.apple.driver.AppleEFIRuntime (1.5.0) <7 6 5 4 3>
  32    0 0xffffff7f80a73000 0x17000    0x17000    com.apple.driver.AppleUSBEHCI (4.5.5) <27 9 7 5 4 3 1>
  33    2 0xffffff7f80d9f000 0xa000     0xa000     com.apple.iokit.IOAHCIFamily (2.0.7) <5 4 3 1>
  34    0 0xffffff7f819ad000 0x18000    0x18000    com.apple.driver.AppleAHCIPort (2.2.0) <33 9 5 4 3 1>
  35    0 0xffffff7f81508000 0x8000     0x8000     com.apple.driver.AppleSmartBatteryManager (161.0.0) <22 8 5 4 3 1>
  36    0 0xffffff7f81983000 0x7000     0x7000     com.apple.driver.AppleEFINVRAM (1.5.0) <31 7 5 4 3>
  37    5 0xffffff7f80910000 0x29000    0x29000    com.apple.iokit.IONetworkingFamily (2.0) <7 6 5 4 3 1>
  38    1 0xffffff7f80dd2000 0x38000    0x38000    com.apple.iokit.IO80211Family (411.1) <37 7 5 4 3 1>
  39    0 0xffffff7f80e0a000 0x1e0000   0x1e0000   com.apple.driver.AirPort.Brcm4331 (512.20.18) <38 37 9 7 5 4 3 1>
  40    0 0xffffff7f809a2000 0x3000     0x3000     com.apple.iokit.IOUSBUserClient (4.5.3) <27 7 5 4 3 1>
  41    0 0xffffff7f80a5e000 0x11000    0x11000    com.apple.driver.AppleUSBHub (4.5.0) <27 5 4 3 1>
  42    0 0xffffff7f80db5000 0x15000    0x15000    com.apple.iokit.IOAHCIBlockStorage (2.0.1) <33 12 5 4 3 1>
  43    0 0xffffff7f813ec000 0x4000     0x4000     com.apple.driver.XsanFilter (403) <12 5 4 3 1>
  44    4 0xffffff7f80a93000 0x9e000    0x9e000    com.apple.iokit.IOThunderboltFamily (1.7.4) <5 4 3 1>
  45    0 0xffffff7f81467000 0x12000    0x12000    com.apple.driver.AppleThunderboltNHI (1.3.2) <44 9 8 5 4 3 1>
  46    0 0xffffff7f8117c000 0x9000     0x9000     com.apple.BootCache (33) <7 6 5 4 3 1>
  47    0 0xffffff7f8196e000 0x5000     0x5000     com.apple.AppleFSCompression.AppleFSCompressionTypeZlib (1.0.0d1) <6 4 3 2 1>
  48    0 0xffffff7f81975000 0x5000     0x5000     com.apple.AppleFSCompression.AppleFSCompressionTypeDataless (1.0.0d1) <7 6 4 3 2 1>
  49    0 0xffffff7f810e6000 0x73000    0x73000    com.apple.driver.CoreStorage (182.10) <12 7 6 5 4 3 1>
  51    1 0xffffff7f80a24000 0x6000     0x6000     com.apple.driver.AppleUSBComposite (3.9.0) <27 4 3 1>
  52    0 0xffffff7f80a58000 0x6000     0x6000     com.apple.driver.AppleUSBMergeNub (4.5.3) <51 27 4 3 1>
  53    3 0xffffff7f80a1c000 0x8000     0x8000     com.apple.iokit.IOUSBHIDDriver (4.4.5) <29 27 5 4 3 1>
  54    0 0xffffff7f81418000 0x4000     0x4000     com.apple.driver.AppleUSBTCKeyboard (225.2) <53 29 27 7 6 5 4 3 1>
  56    0 0xffffff7f81421000 0x13000    0x13000    com.apple.driver.AppleUSBMultitouch (227.1) <53 29 27 6 5 4 3 1>
  57    0 0xffffff7f8141d000 0x3000     0x3000     com.apple.driver.AppleUSBTCButtons (225.2) <53 29 27 7 6 5 4 3 1>
  58    2 0xffffff7f80c99000 0x75000    0x75000    com.apple.iokit.IOBluetoothFamily (4.0.1f4) <7 5 4 3 1>
  59    1 0xffffff7f80d2e000 0xe000     0xe000     com.apple.driver.AppleUSBBluetoothHCIController (4.0.1f4) <58 27 7 5 4 3>
  60    0 0xffffff7f80d44000 0x9000     0x9000     com.apple.driver.BroadcomUSBBluetoothHCIController (4.0.1f4) <59 58 27 5 4 3>
  62    0 0xffffff7f8145b000 0x4000     0x4000     com.apple.driver.AppleThunderboltPCIDownAdapter (1.2.1) <44 9 4 3>
  63    1 0xffffff7f81479000 0x8000     0x8000     com.apple.driver.AppleThunderboltDPAdapterFamily (1.5.8) <44 9 8 5 4 3>
  64    0 0xffffff7f81481000 0x4000     0x4000     com.apple.driver.AppleThunderboltDPInAdapter (1.5.8) <63 44 9 8 5 4 3>
  65   14 0xffffff7f80bda000 0x38000    0x38000    com.apple.iokit.IOGraphicsFamily (2.3.2) <9 7 5 4 3>
  66    0 0xffffff7f815d1000 0x3a000    0x3a000    com.apple.driver.AppleIntelSNBGraphicsFB (7.1.4) <65 9 8 7 6 5 4 3 1>
  67    7 0xffffff7f80c12000 0x12000    0x12000    com.apple.iokit.IONDRVSupport (2.3.2) <65 9 7 5 4 3>
  68    0 0xffffff7f8160b000 0xe0000    0xe0000    com.apple.driver.AppleIntelHD3000Graphics (7.1.4) <67 65 9 7 5 4 3 1>
  72    1 0xffffff7f81944000 0x3000     0x3000     com.apple.driver.AppleBacklightExpert (1.0.3) <67 65 9 5 4 3>
  73    0 0xffffff7f81999000 0x5000     0x5000     com.apple.driver.AppleBacklight (170.1.9) <72 67 65 9 5 4 3>
  74    1 0xffffff7f81932000 0x3000     0x3000     com.apple.driver.AppleGraphicsControl (3.0.16) <67 65 9 8 7 5 4 3 1>
  76    0 0xffffff7f815c4000 0x3000     0x3000     com.apple.driver.AppleLPC (1.5.3) <9 5 4 3>
  77    1 0xffffff7f80ba5000 0x13000    0x13000    com.apple.driver.IOPlatformPluginFamily (4.7.5d4) <8 7 6 5 4 3>
  78    3 0xffffff7f80bb8000 0xc000     0xc000     com.apple.driver.AppleSMC (3.1.1d8) <8 7 5 4 3>
  79    0 0xffffff7f80bc4000 0x11000    0x11000    com.apple.driver.ACPI_SMC_PlatformPlugin (4.7.5d4) <78 77 9 8 7 6 5 4 3>
  80    0 0xffffff7f81935000 0xf000     0xf000     com.apple.driver.ApplePolicyControl (3.0.16) <74 67 65 9 8 7 5 4 3 1>
  81    2 0xffffff7f81759000 0xc000     0xc000     com.apple.iokit.IOHDAFamily (2.1.3f7) <5 4 3 1>
  82    1 0xffffff7f81794000 0x1a000    0x1a000    com.apple.driver.AppleHDAController (2.1.3f7) <81 65 9 6 5 4 3 1>
  83    0 0xffffff7f814eb000 0x5000     0x5000     com.apple.driver.AppleSMCLMU (2.0.1d2) <78 65 5 4 3>
  84    2 0xffffff7f81196000 0x6000     0x6000     com.apple.kext.OSvKernDSPLib (1.3) <5 4>
  85    4 0xffffff7f8119c000 0x2a000    0x2a000    com.apple.iokit.IOAudioFamily (1.8.3fc11) <84 5 4 3 1>
  86    0 0xffffff7f811c6000 0x4000     0x4000     com.apple.driver.AudioIPCDriver (1.2.1) <85 5 4 3 1>
  87    0 0xffffff7f810e0000 0x5000     0x5000     com.apple.Dont_Steal_Mac_OS_X (7.0.0) <78 7 4 3 1>
  88    1 0xffffff7f80d4d000 0x5000     0x5000     com.apple.iokit.IOEthernetAVBController (1.0.0d5) <37 5 4 3 1>
  89    0 0xffffff7f80d52000 0x9000     0x9000     com.apple.iokit.IOAVBFamily (1.0.0d22) <88 37 5 4 3 1>
  90    2 0xffffff7f80b4b000 0xe000     0xe000     com.apple.iokit.IOSerialFamily (10.0.5) <7 6 5 4 3 1>
  91    0 0xffffff7f80d20000 0xe000     0xe000     com.apple.iokit.IOBluetoothSerialManager (4.0.1f4) <90 7 5 4 3 1>
  92    0 0xffffff7f80b31000 0x12000    0x12000    com.apple.iokit.IOSurface (80.0) <7 5 4 3 1>
  93    0 0xffffff7f80939000 0x6000     0x6000     com.apple.iokit.IOUserEthernet (1.0.0d1) <37 6 5 4 3 1>
  94    0 0xffffff7f814f2000 0x3000     0x3000     com.apple.driver.AppleSMBusPCI (1.0.10d0) <9 5 4 3>
  95    0 0xffffff7f81923000 0xb000     0xb000     com.apple.driver.AGPM (100.12.42) <67 65 9 5 4 3>
  96    0 0xffffff7f81595000 0xa000     0xa000     com.apple.driver.AppleMCCSControl (1.0.26) <65 9 7 5 4 3 1>
  97    0 0xffffff7f81434000 0x5000     0x5000     com.apple.driver.AppleUpstreamUserClient (3.5.9) <65 9 8 7 5 4 3 1>
  98    0 0xffffff7f81574000 0x4000     0x4000     com.apple.driver.ApplePlatformEnabler (2.0.4d2) <7 5 4 3>
  99    1 0xffffff7f814f5000 0xe000     0xe000     com.apple.driver.AppleSMBusController (1.0.10d0) <22 9 8 5 4 3>
 101    1 0xffffff7f817ae000 0xa4000    0xa4000    com.apple.driver.DspFuncLib (2.1.3f7) <85 84 5 4 3 1>
 102    0 0xffffff7f81852000 0xaf000    0xaf000    com.apple.driver.AppleHDA (2.1.3f7) <101 85 82 81 67 65 6 5 4 3 1>
 104    0 0xffffff7f81765000 0x22000    0x22000    com.apple.driver.AppleMikeyDriver (2.1.3f7) <99 8 5 4 3 1>
 105    0 0xffffff7f811cc000 0x5000     0x5000     com.apple.driver.AudioAUUC (1.59) <85 65 9 8 7 5 4 3 1>
 106    0 0xffffff7f8199f000 0xa000     0xa000     com.apple.driver.AppleAVBAudio (1.0.0d11) <5 4 3 1>
 107    0 0xffffff7f8158a000 0x3000     0x3000     com.apple.driver.AppleMikeyHIDDriver (122) <29 7 4 3 1>
 108    0 0xffffff7f807e7000 0x2b000    0x2b000    com.apple.iokit.IOSCSIArchitectureModelFamily (3.0.1) <5 4 3 1>
 109    2 0xffffff7f81186000 0x5000     0x5000     com.apple.kext.triggers (1.0) <7 6 5 4 3 1>
 110    0 0xffffff7f8118b000 0x9000     0x9000     com.apple.filesystems.autofs (3.0) <109 7 6 5 4 3 1>
 111    0 0xffffff7f81739000 0x5000     0x5000     com.apple.driver.AppleHWSensor (1.9.4d0) <5 4 3>
 113    0 0xffffff7f80840000 0x35000    0x35000    com.apple.filesystems.smbfs (1.7.0) <109 7 6 5 4 3 1>
 116    0 0xffffff7f807b7000 0x8000     0x8000     com.ti.driver.MSP430LP (1.0.3) <90 27 5 4 3>

Link to post
Share on other sites
  • 6 months later...

Hi! I am on 10.5.8 with Dual Core processor (i.e. no x64), and cannot find trace of driver amongst extensions, even though installer indicates success. Can see /System/Library/Extensions/Caches been accessed at the time of installer run.

 

There is no ex430rf2500.kext at this time, however that is working with mspdebug, when present. Would love getting Energia running with serial feedback. Looking at dmesg, there is AppleUSBCDCACMControl: start - Failed to find the CDC driver. No trace of resulting /dev/tty*, as well. Thinking about local build of driver, if not too complicated to set for.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...