This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c2000 Piccolo Launchpad programming with MAC OS Possible?

Other Parts Discussed in Thread: ENERGIA, MSP430FR5969, CONTROLSUITE

I have just received a c2000 Piccolo as a gift, but I only have a MacBook Pro. Is there any way I can
program my controller using a MAC OS?

  • Hi Princton,

    Sorry, you need Windows or Linux for the development. You can install Windows/ubuntu side by side to Mac OS if you're keen to use your MacBook Pro as a development center.

    Regards,
    Gautam
  • Actually...You can program the C2000 LaunchPad using Mac OSX.  Energia version 14 was just released a few days ago and includes support for this LaunchPad in OSX.  You can get it here.

    We are working on releasing a version of CCS for Mac.  It should be released sometime next year.

    BR,

  • Hello Princton,

    I use a MacBook Pro (Retina display on the MacBook, and two 27" Thunderbolt displays) and Mac OS X 10.10 (Yosemite) for all development by running VMware Fusion and two Windows 7 Professional virtual machines: one VM with TI Code Composer Studio v6 and MathWorks Simulink with Embedded Coder, and the other VM runs a USBee 24 channel USB logic analyzer. The LaunchPad(s) connects through USB through to the development VM. I was doing c2000-based development, but have switched to an MSP430 design. You better have a maxed-out MacBook Pro with 16 GB RAM and 4 cores (8 virtual cores, I assign 2 for each VM) with a big solid state internal drive.

    I have found it convenient having all the development directories/folders ("workspaces") to be a shared folder on the Mac that the VMs can access--"Z:\Projects\etc.". This allows all my work to be automatically backed up to Time Machine, as well as editing my C-code in BBEdit or Xcode should I wish. If I didn't like the ability to take my whole development environment on the road, I'd be running on a Mac Pro on my desk.

    One other advantage is that I can trivially take a "snapshot" of the development virtual machine before doing any major development or operating system updates. Something breaks?, just roll it back to the snapshot in VMware. You can also easily move development to a new physical machine without reinstalling everything.

    Hope that helps.

    Bill.
  • Trey,

    Great news! I look forward to it. If CCS is available on the Mac, then I would begin to look at using MathWorks MATLAB/Simulink/Embedded Coder in their Mac OS version, too. I could finally relinquish dependence on maintaining a Windows environment on a virtual machine.

    Regards,

    Bill.
  • Hello Trey,

    Hey thanks a lot for your help! I'm making the attempt today to download and try the Energia you've suggested.
    Will I be able to program a MSP430FR5969 as well?
  • Great News! I thought CCS would never be available for MAC OS.
  • OK, so Trey I have good news and (hopefully) what I think is bad news that will turn into something I did wrong that's easily fixed. So, as a gift, I got the c2000 piccolo & the MSP430FR5969 MCU's. Ironically I made this post about the C2000, but I am having an issue uploading any sample programs to it; it's not being recognized (there's no option to select it from the tools dropdown list). On the other hand the MSP430FR5969 was recognized with no issue at all... and after a simple update, I was able to successfully upload sample code.

    Is there some minor step I'm missing for the c2000 to work? NOTE: This is my 1st time working with TI MCU's, but it looks almost identical to the Arduino IDE.
  • On the other hand the MSP430FR5969 was recognized with no issue at all... and after a simple update, I was able to successfully upload sample code.

    You're using windows PC right? Also, how're you uploading the sample code - using CCS itself or some other program?

    Regards,
    Gautam
  • I an using a MacBook Pro running Yosemite. I have installed Energia Version 14 for Mac OS X.
  • I an using a MacBook Pro running Yosemite. I have installed Energia Version 14 for Mac OS X.

    Ok , got it! No problem. controlSuite is meant for Windows and linux only.

    Regards,
    Gautam
  • Princeton,

    We just released support for OSX in Energia 14 earlier this week. I just got a chance to test it and it looks like there is a small bug that prevents successful compilation of C2000 programs. I've already fixed this in the github sources, but the fix won't be released until Energia 15 is released :-(

    That said, if the bug wasn't present. This is how you would set it up:

    You have to install the compiler manually for Energia because we can't redistribute it due to licensing issues. Follow the instructions here:
    http://energia.nu/pin-maps/guide_c2000launchpad/

    Installing the compiler unlocks support for it in the boards menu, but you'll still need drivers for the XDS100 emulator on the board. We have drivers for this, but I don't think they've been put up on the Energia site. I'll try to get those up today.

    BR,
  • Hi Trey,

    I have just reinstalled Energia 15 and the c2000 compiler / tools version 6.4.4 in Energia.app/Contents/Resources/Java/hardware/tools/c2000
    Then I did
    sudo chmod 777 Energia.app/Contents/Resources/Java/hardware/c2000/serial_loader2000/macos/serial_loader2000
    found on some Energia support page.

    Unfortunately, the c2000 does not appear as an option in Energia's menu Tools->Board. Could you help, please?

    The page you provided a link to above seems out of date, as it only gives instructions for Windows / Linux.

    Thank you.

    Best regards,
    Nicu Mihalache
  • Nicu,

    The compiler needs to be installed before the C2000 boards will show up in Energia. Download the compiler from the link on the Energia site, and then install it to Energia.app/hardware/tools/C2000.

    Restart Energia and the boards should show up.
    BR,
  • Trey,

    Thank you for you quick answer. Actually I had already installed the compiler but in a wrong folder. Tried the one you recommended, but it turns out that the correct location is
    Energia.app/Contents/Resources/Java/hardware/tools/c2000

    However, even if the board now appears in the list, I had not succeeded uploading on it. After setting the switches as instructed, I get the following error
    "error 2 opening COM port: No such file or directory"

    with a hint of also trying a baud rate no more than 38400. I cannot find a way to change that (Tools->Serial Port is not available), but I suspect it already tries at 9600 because of this command

    bash -c /Applications/Energia.app/Contents/Resources/Java/hardware/c2000/serial_loader2000/macos/serial_loader2000 -f /var/folders/84/304ywwls5dxgvzdk0ph7t0hc0000gn/T/build503577823330307064.tmp/testMicros.cpp.txt -k /Applications/Energia.app/Contents/Resources/Java/hardware/c2000/F28027_flash_kernel/Debug/flash_kernel.txt -b 9600 -p /dev/tty.uart-6CFF49F37B531436

    Thank you.

    BR,
    Nicu Mihalache
  • On a Mac you don't use COM ports. The port will be something like tty.cuusbserial. Try changing this in the Serial Port dialog and see if you can flash it.
  • Well, as I said, Serial Port menu / dialog is not available. The command above is indeed trying to upload to /dev/tty.uart-6CFF49F37B531436, with no success.

    Sorry to bother you, but I have no idea what the issue is and where I can change settings to tinker.

    Nicu
  • Sorry I didn't see that.  If there are no serial ports available, try downloading and installing these drivers:

    http://energia.nu/files/EnergiaFTDIDrivers2.2.18.zip

    The drivers for the XDS100 were supposed to be rolled into this package, but I haven't had a chance to check.

  • Indeed, I am a step closer, thank you.

    Now, when I plug in the c2000 LaunchPad, I get 4 choices in the Serial Port menu:
    /dev/tty.usbserial-TIWMSYUJA
    /dev/cu.usbserial-TIWMSYUJA - Kernel autobaud timed out
    /dev/tty.usbserial-TIWMSYUJB
    /dev/cu.usbserial-TIWMSYUJB - Unable to open establish kernel autobaud

    For #1 and #3, the upload freezes, with some error if I unplug LaunchPad. For the others I have listed the corresponding error message above.

    Nicu
  • Hi Trey,

    This is just to let you know that after a reinstall of Energia + c2000 compiler + sudo 777, the upload now works (most of the time) on
    /dev/cu.usbserial-TIWMSYUJB

    There is no confirmation of the upload being completed, so this is a "feature request" for serial_loader2000. Of course it does not stop me from working with it, I report it only to contribute a bit toward its improvement.

    BR,
    Nicu