Hi,
I'm having problems compiling with MSP432, driverlib, and using C++.
I have MSPWare_2_10_00_15 and I'm using the MSP432P4xx folder. I import the empty project into CCS 6.1 from MSPWare/Libraries/MSP432P4xx using Resource Explorer. This compiles fine. Then I change main.c to main.cpp and compile with errors. It seems these three functions are declared elsewhere, maybe the library file?
Description Resource Path Location Type
#339 linkage specification is incompatible with previous "__nop" (declared at line 45) .ccsproject /empty_project line 45, external location: C:\ti\ccsv6\ccs_base\arm\include\CMSIS\cmsis_ccs.h C/C++ Problem
#339 linkage specification is incompatible with previous "__wfe" (declared at line 57) .ccsproject /empty_project line 57, external location: C:\ti\ccsv6\ccs_base\arm\include\CMSIS\cmsis_ccs.h C/C++ Problem
#339 linkage specification is incompatible with previous "__wfi" (declared at line 51) .ccsproject /empty_project line 51, external location: C:\ti\ccsv6\ccs_base\arm\include\CMSIS\cmsis_ccs.h C/C++ Problem
I've done a few tests:
- I've done the same thing with the MSP430FR5969 driverlib empty project. This compiles fine with the main.cpp. There's no library file.
- I've done the same thing with the MSP432 empty project (no driverlib). This compiles fine with the main.cpp.
- I've also turned on the Disable Intrinsic Functions checkbox on the MSP432 driverlib empty project. This compiles fine with the main.cpp. This fix is not ideal though.
Please help,
Thanks,
Titus