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.

CCS/MSP430FR6989: Project set up using GCC for MSP430 showing warnings after compile with driverlib

Part Number: MSP430FR6989
Other Parts Discussed in Thread: MSP430WARE

Tool/software: Code Composer Studio

Hi,

I'm using CCS to write my code for the MSP430FR6989 Launchpad. I set up the project to use GCC and I also wanted to use driverlib. I'm not sure if I did this right and I could not find any documentation to help me set up. Anyway, what I did was I copied the MSP430FR5xx_6xx folder from the MSPWARE driverlib directory and pasted this folder inside my project directory. Then under the include paths, I added this directory so the project will point to the h files in tis directory. After this I compiled the program and it compiled successfully. I was able to turn an LED on and off from the Launchpad. However I get numerous warnings

one is

"cast to pointer from integer of different size... -- clicking on this brings me to hwmemmap.h"

and another warning is

"suggest parentheses around arithmetic in operand of '|' "

Any thoughts on this? Also, is there anything missing in my set up? should I include something under symbols like something similar to "TARGET_IS_TM4C...." - with the TIVA set up and also the library paths. I don't see any .lib files in the driverlib folder unlike the ones with the TM4C.

Thanks.

AJ

  • Hello,

    Thank you for your post. These warnings are harmless. I've reported them, so they'll be fixed in the future. Your setup seems fine since you're not seeing any errors which is good. Also, there's no need for the TARGET_IS_xxxxxx #define.

    Since the source code is provided, your project can recompile its own driver.lib based on whichever compiler (there are several options available) that gets selected. How you set up the project for GCC is basically the preferred method. For the CCS compiler, there's a much easier way.

    If creating a new CCS project:

    If adding to an existing CCS project:

    NOTE: For the second method, you must have a version of MSP430Ware or MSP430 DriverLib installed and pointed to by CCS.

    Another option would be to create a CCS MSP430 DriverLib project and then change the compiler to GCC. However, you'd have to change the include path again manually, so this option isn't much easier/quicker than the others.

    Regards,

    James

    MSP Customer Applications

  • Hi James,

    Thank you for your response. How do I make msp430ware pointed to by CCS?

    I donwloaded msp430ware from the TI website and installed it and it created an msp directory under the ti folder. But I think it's not yet pointed by ccs. My CCS is also located in the TI folder. I downloaded the MSP430 and CCS separately and installed them separately. I tried to do the two options you described above but whenever I start a new project, I do not see the last two options. I just see Empty Projects and the items within it. I also tried going to source and apply project templates but there was nothing in there.

    Thanks.

    AJ
  • I also have an additional question.. my colleague mentioned that the TI compiler for MSP is now free and no limit in code size. Is that true? Or is it just GCC? And does same go for the TI ARM compiler for TIVA?

    Thanks.
    AJ
  • Hello AJ,

    Please see the following thread. If you have any further compiler-related questions, please post them to our TI Code Composer Forum or TI C/C++ Compiler Forum.

    CCS: CCS7: Are all features for all processors available for free on CCS7? - Code Composer Studio forum...

    e2e.ti.com
    Tool/software: Code Composer Studio Are all the features of CCS7 available for free? Does the free version include support for all processors? I remember that certain

    Regards,

    James

    MSP Customer Applications

**Attention** This is a public forum