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.

  • Resolved

c2000 Piccolo Launchpad programming with MAC OS Possible?

Prodigy 40 points

Replies: 19

Views: 2913

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?

  • In reply to Gautam Iyer:

    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,

    Trey German

    LaunchPad Applications Manager

    If a post answers your question, please mark it with the "verify answer" button.
    Visit these helpful C2000 Links!
    C2000 TI Wiki Pages
    TI Forum Sitemap
    ControlSUITE
    C2000 Getting Started
    CLA FAQs
    Workshop Material!
  • In reply to Trey German289:

    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
  • In reply to Nicolae 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 German

    LaunchPad Applications Manager

    If a post answers your question, please mark it with the "verify answer" button.
    Visit these helpful C2000 Links!
    C2000 TI Wiki Pages
    TI Forum Sitemap
    ControlSUITE
    C2000 Getting Started
    CLA FAQs
    Workshop Material!
  • In reply to Trey German289:

    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
  • In reply to Nicolae 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.

    Trey German

    LaunchPad Applications Manager

    If a post answers your question, please mark it with the "verify answer" button.
    Visit these helpful C2000 Links!
    C2000 TI Wiki Pages
    TI Forum Sitemap
    ControlSUITE
    C2000 Getting Started
    CLA FAQs
    Workshop Material!
  • In reply to Trey German289:

    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
  • In reply to Nicolae Mihalache:

    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.

    Trey German

    LaunchPad Applications Manager

    If a post answers your question, please mark it with the "verify answer" button.
    Visit these helpful C2000 Links!
    C2000 TI Wiki Pages
    TI Forum Sitemap
    ControlSUITE
    C2000 Getting Started
    CLA FAQs
    Workshop Material!
  • In reply to Trey German289:

    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
  • In reply to Trey German289:

    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

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.