energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
798 stars 670 forks source link

MAC OSX MSP430 kernel extension not included in distribution #55

Closed pbrier closed 12 years ago

pbrier commented 12 years ago

The flash programmer does not work under MAC OSX. It reports:

rf2500: can't claim interface: Permission denied rf2500: failed to open RF2500 device

It seems you need a "codeless kernel extension" that is not included in the distribution See:

http://www.senslab.info/2010/11/installing-the-msp430-toolchain-under-mac-os-x/ https://github.com/colossaldynamics/ez430rf2500

I was not able to get it work under MAC OSX Lion 10.7 (64 bit)

Also, CDC driver is not included in MAC (Launchpad CDC is not compliant with spec) May need patched driver, like http://code.google.com/p/msp430lpcdc/ (include in dist?)

robertinant commented 12 years ago

All you need is: http://code.google.com/p/msp430lpcdc/ Also available here: https://github.com/energia/Energia/wiki/Getting-Started

Please see this thread: http://www.43oh.com/forum/viewtopic.php?f=7&t=1591

If you have ez430rf2500.kext ("codeless kernel extension") installed then you will need to remove it.

Below is my log without the MSP430LPCDC.kext driver.

5/29/12 4:33:37.000 PM kernel: 0        0 AppleUSBCDCACMControl: start - configureACM failed
5/29/12 4:33:37.000 PM kernel: AppleUSBCDC: Version number - 4.1.15

Which in Energia gives me:

rf2500: can't claim interface: Permission denied
rf2500: failed to open RF2500 device

And this is with the MSP430LPCDC.kext.

5/29/12 4:23:42.000 PM kernel: ----------------------------------------------------
5/29/12 4:23:42.000 PM kernel: Texas Instrument LaunchPad / EZ430-RF2500 CDC/ACM Driver
5/29/12 4:23:42.000 PM kernel: Version 1.0.3b - Terence Ang 2011 
5/29/12 4:23:42.000 PM kernel: ----------------------------------------------------
5/29/12 4:23:42.000 PM kernel: Device Name = Texas Instruments MSP-FET430UIF
5/29/12 4:23:42.000 PM kernel: Serial Number = 11FF427A4D192D16
5/29/12 4:23:42.000 PM kernel: ----------------------------------------------------
5/29/12 4:23:42.000 PM kernel: MSP430LPCDC : Version number - 1.0.3b, Input buffers 8, Output buffers 16
5/29/12 4:23:42.000 PM kernel: AppleUSBCDC: Version number - 4.1.15
5/29/12 4:25:37.000 PM kernel: IOSurface: buffer allocation size is zero
5/29/12 4:25:39.000 PM kernel: IOSurface: buffer allocation size is zero

Which in Energia gives me:

MSPDebug version 0.19 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Trying to open interface 1 on 002
Initializing FET...
FET protocol version is 30066536
Configured for Spy-Bi-Wire
Sending reset...
Set Vcc: 3000 mV
Device ID: 0x2553
Device: MSP430G2553
Code memory starts at 0xc000
Number of breakpoints: 2
fet: warning: message 0x30 failed
Erasing...
Programming...
Writing 3562 bytes to c000...
Writing   32 bytes to ffe0...
Done, 3594 bytes written
pbrier commented 12 years ago

Thanks. I'll have to check once I have access to a MAC again (I do not own one, but a friend of mine does, I tried to install on his system). It is wise to include this driver in the distribution, and make it easy to install it (automatically?)

robertinant commented 12 years ago

Ok, let me know if it does not work. Driver is already included in Energia 0101E0006. Closing this issue for now. Please reopen if you still have issues with getting it going.