energia / Energia

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

MSP430F5529 on Mac OS X 10.10.5: Connection Fails #693

Closed rei-vilo closed 9 years ago

rei-vilo commented 9 years ago

LaunchPad MSP430F5529 version 1.5 on Mac OS X 10.10.4

Mac OS X 10.10.4 seems to have changed something compared on USB management with Mac OS X 10.10.3.

$ ls /dev/tty.* /dev/tty.Bluetooth-Incoming-Port /dev/tty.Bluetooth-Modem

$ lsusb Bus 020 Device 025: ID 0451:2046 Texas Instruments Hub Bus 020 Device 026: ID 2047:0013 2047 MSP Tools Driver Serial: 324F0C470E002200

The only solution so far is to disconnect the board and wait for 10 minutes, then replug. After a while, connection is lost again.

A sketch as simple as printing "." every second disconnects after 10 seconds and reboots.

rei-vilo commented 9 years ago

Upload trace

MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.
MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: usbmodem14221
MSP430_Initialize: usbmodem14221
Firmware version is 30403000
MSP430_VCC: 3000 mV
MSP430_OpenDevice
MSP430_GetFoundDevice
Device: MSP430F5529 (id = 0x0030)
8 breakpoints available
MSP430_EEM_Init
Chip ID data: 55 29 18
Erasing...
Programming...
Writing 2958 bytes at 4400...
Writing  128 bytes at ff80...
Done, 3086 bytes total
MSP430_Run
MSP430_Close

Sketch

void setup()
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("***");
}

uint16_t i = 0;

void loop()
{
  // put your main code here, to run repeatedly:
  delay(1000);
  Serial.println(i, DEC);
  i++;
}

Serial console


0 1 2 3 4 5 6




0



0 1



0 1 2


0

rei-vilo commented 9 years ago

Document MSP430F5529 LaunchPadTM Development Kit (MSP‐EXP430F5529LP) slau533c mentions restrictions for Mac two times:

2.2.2 eZ-FET lite Onboard Emulator

Mac OS X has a limitation that prevents it from enumerating composite USB devices that include a CDC interface. For this reason, the eZ-FET lite currently does not work with the default OS X.

and

3.6 Example: simpleUsbBackchannel

The simpleUsbBackchannel example runs on Windows and Linux PCs. However, it does not run on Macs, because the OS X does not support composite CDC devices. This means that OS X does not support the eZ-FET lite emulator or its backchannel UART. What's not clear to me is I haven't faced those limitations with previous release Mac OS X 10.10.2.

Any plan to provide a full support on Mac OS X?

rei-vilo commented 9 years ago

Same issue on Mac OS X 10.10.5.

I installed the 10.10.5 update and then proceeded with a clean install of Energia 16 and the provided drivers, EnergiaFTDIDrivers2.2.18 and MSP430LPCDC 1.0.3b.

Shall I consider switching back to Windows?

rei-vilo commented 9 years ago

More updates about my LaunchPad MSP430F5529 rev 1.5. Each IDE on each operating system requires a firmware update with a specific release.

Wouldn't be nice to have all IDEs on all the operating systems aligned on the same firmware version? Just imagine how confusing for hobbyists and how unproductive for professionals!

C:\Autres\energia-0101E0016\hardware\tools\msp430\mspdebug>mspdebug.exe tilib

MSPDebug version 0.22 - debugging tool for MSP430 MCUs Copyright (C) 2009-2013 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.

MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: COM17 MSP430_Initialize: COM17 Firmware version is 30403004 MSP430_VCC: 3000 mV MSP430_OpenDevice MSP430_GetFoundDevice Device: MSP430F5529 (id = 0x0030) 8 breakpoints available MSP430_EEM_Init Chip ID data: 55 29 18

  • CCS 6.1 on Windows

CCS asks for an update but I can't determine the version, as CCS acts as a blackbox.

Running msp430debug on different mspdebug from MSPWare_2_10_00_15, MSPWare_2_00_00_41, MSPWare_2_10_00_15 throws the same result.

MSPDebug version 0.20 - 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.

MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: COM17 MSP430_Initialize: COM17 FET firmware update is required. Re-run with --allow-fw-update to perform a firmware update. tilib: device initialization failed

  • Energia 0101E0016 on Mac OS X

$ cd /Applications/IDE/Energia.app/Contents/Resources/Java/hardware/tools/msp430/mspdebug $ ./mspdebug tilib

MSPDebug version 0.22 - debugging tool for MSP430 MCUs Copyright (C) 2009-2013 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. MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: usbmodem14121 MSP430_Initialize: usbmodem14121 Firmware version is 30403000 MSP430_VCC: 3000 mV MSP430_OpenDevice MSP430_GetFoundDevice Device: MSP430F5529 (id = 0x0030) 8 breakpoints available MSP430_EEM_Init Chip ID data: 55 29 18

rei-vilo commented 9 years ago

I performed a full install of Mac OS X 10.10.5 and clean install of Energia 16. It solved the problem.

The drivers provided by Energia, CCS Mac and CCS Cloud are conflicting.

As I'm using the Energia framework, I'll refrain from installing CCS Mac or CCS Cloud.