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.

compiler

Hi Experts,

Our customer have downloaded the "ti_cgt_msp430_4.4.8_osx_installer" installer and installed it. He can see it in "/Applications/ti/ccs1011/ccs/tools/compiler/ti-cgt-msp430_4.4.8". So far everything is fine. But somehow he can not select this compiler in ccs. Please see the screenshot. (he added the full path, just to see if it makes a difference).

Any idea what he can do to be able to select this compiler? He is working on a MAC with an Apple M1 chipset, and is asking if could that make a difference?

Kind regards,

Gerald

  • Hello Gerald,

    He is working on a MAC with an Apple M1 chipset, and is asking if could that make a difference?

    Partially. The main issue is the old compilers are not supported on macOS Catalina or higher. Given that the customer is using a M1 Mac, he likely has some recent OS like Monterey.

    Basically, Catalina (and greater) no longer supports 32-bit applications. The older compiler builds are only 32-bit. Hence the issue. I think compiler version 18.12 is the earliest compiler version that will work on Catalina and greater.

    Thanks

    ki

  • Hi Ki,

    Customer searching through the "msp430_4.4.8" installer, he found that this compiler is not suitable for an M1 MAC CPU. Only for a I386. Is there a replacement compiler that I can use in stead of the 4.4.8 (legacy COFF)?

    Kind regards,

    Gerald

  • If the customer plans on using his M1 mac with a current OS, they need to use compiler version 18.12 or greater. 

  • Thank you, that makes sense. Customer is also asking if is there any documentation on how to convert/migrate from a 4.4.8 (legacy COFF) to a newer (18.12 or higher) compiler? How do he start with this migration? He tried it the simple way by just selecting a newer compiler, but obviously it's not that simple. Please advise. Thank you.

  • He tried it the simple way by just selecting a newer compiler, but obviously it's not that simple. Please advise. Thank you.

    What were the issues he ran into.

    I will bring this thread to the attention of the compiler experts. They will be able to provide more suggestions.

    Thanks

    ki

  • is there any documentation on how to convert/migrate from a 4.4.8 (legacy COFF) to a newer (18.12 or higher) compiler?

    Unfortunately, there is no document specific to that topic.  I'll give a few key points here.

    It is not possible to combine code built for COFF ABI with code built for EABI.  When that is attempted, the linker detects it and issues an error.

    For all the libraries or software development kits (SDK) you use, obtain one that supports EABI.

    It is likely your linker command file came from an SDK.  Replace your linker command file with the corresponding one from the updated SDK.  

    Porting C/C++ code is easy.  Just rebuild with the new compiler.  It only supports EABI.

    If you have hand-coded assembly, then changes must be made. The article C2000 Migration from COFF to EABI is specific to C28x devices.  However, some of the information in that article also applies to MSP430 devices.

    I expect the customer will be able to make lots of progress using only this information.  If there are further issues, please reply to this thread with the details.  If there are no further issues, please mark this thread as resolved.

    Thanks and regards,

    -George