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.
Hello,
I'm trying to compile the "OutOfBox_EmulStorageKeyboard" (16kb version) example code for the MSP430F5529 launchpad, and immediately after importing the project I get the following warnings. It seems to stem from the fact that the definitions are found in both "\OutOfBox_EmulStorageKeyboards\driverlib\MSP430F5xx_6xx\deprecated\msp430f5xx_6xxgeneric.h" as well as "\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h". How should I fix this?
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 160: warning #48-D: incompatible redefinition of macro "LPM0" (declared at line 133 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 161: warning #48-D: incompatible redefinition of macro "LPM0_EXIT" (declared at line 134 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 162: warning #48-D: incompatible redefinition of macro "LPM1" (declared at line 135 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 163: warning #48-D: incompatible redefinition of macro "LPM1_EXIT" (declared at line 136 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 164: warning #48-D: incompatible redefinition of macro "LPM2" (declared at line 137 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 165: warning #48-D: incompatible redefinition of macro "LPM2_EXIT" (declared at line 138 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 166: warning #48-D: incompatible redefinition of macro "LPM3" (declared at line 139 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 167: warning #48-D: incompatible redefinition of macro "LPM3_EXIT" (declared at line 140 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 168: warning #48-D: incompatible redefinition of macro "LPM4" (declared at line 141 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
"..\driverlib\MSP430F5xx_6xx\inc\../deprecated/CCS/msp430f5xx_6xxgeneric.h", line 169: warning #48-D: incompatible redefinition of macro "LPM4_EXIT" (declared at line 142 of "c:\ti\ccsv6\ccs_base\msp430\include\msp430f5529.h")
Removing the header file will generate new error's.
In the header file "driverlib\MSP430F5xx_6xx\deprecated\CCS\msp430f5xx_6xxgeneric.h" comment out all the lines within the first "ifdef __ASM_HEADER__" with the LPM definitions.
Thanks for the replies, but how do I exclude the file? It's included by a library file, isn't it bad form to go editing the library files since they could be shared by other projects? How do I make it not include both files without editing the library files?
MichaelH said:but how do I exclude the file?
You can't mark a header file 'Excluded' (at least it doesn't work), you need to remove it and/or remove the references to it.
MichaelH said:isn't it bad form to go editing the library files since they could be shared by other projects?
No, the file is added to this project and only in use by this project.