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.
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
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...
Regards,
James
MSP Customer Applications
**Attention** This is a public forum