Hello,
I am a teaching assistant for a course in which we use the TI MSP432P401R LaunchPad at the Georgia Institute of Technology, Atlanta GA. Back in January 2016, when I took the course, we used CCS version 6.1.2.00015 and MSPWare version 2_20_00_19 which has driverlib.h version 2_20_00_08
The problem with using this version of CCS was that it was not MacOS compatible and students with Mac laptops had to use lab computers. Therefore, we have decided to use CCS version 6.1.3.00033 as it is both MacOS compatible and it supports MSP432 platform.
However, my code does not compile when I use CCS version 6.1.3.00033 and MSPWare version 2_20_00_19 which has driverlib.h version 2_20_00_08. The reason I am using the older version of driverlib is because the MACROS have changed in recent versions as compared to what I had learnt in Spring.
We would like to stick with the old MACROS but use a MacOS compatible version of CCS. Please guide me if there is a solution for that.
I get the following error messages in my console, when I try to flash a program onto the MSP432 launchpad:-
**** Build of configuration Debug for project test2 ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: MSP432 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv6/ccs_base/arm/include" --include_path="C:/ti/ccsv6/ccs_base/arm/include/CMSIS" --include_path="C:/Users/Marcus/workspace_v6_1_3/test2/driverlib/MSP432P4xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include" --advice:power=all -g --gcc --define=__MSP432P401R__ --define=TARGET_IS_MSP432P4XX --define=ccs --diag_wrap=off --diag_warning=225 --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d" "../main.c"
>> Compilation failure
subdir_rules.mk:7: recipe for target 'main.obj' failed
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 76: warning #48-D: incompatible redefinition of macro "P1MAP" (declared at line 1286 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 77: warning #48-D: incompatible redefinition of macro "P2MAP" (declared at line 1287 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 78: warning #48-D: incompatible redefinition of macro "P3MAP" (declared at line 1288 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 79: warning #48-D: incompatible redefinition of macro "P4MAP" (declared at line 1289 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 80: warning #48-D: incompatible redefinition of macro "P5MAP" (declared at line 1290 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 81: warning #48-D: incompatible redefinition of macro "P6MAP" (declared at line 1291 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"C:\Users\Marcus\workspace_v6_1_3\test2\driverlib\MSP432P4xx\pmap.h", line 82: warning #48-D: incompatible redefinition of macro "P7MAP" (declared at line 1292 of "C:\ti\ccsv6\ccs_base\arm\include\msp432p401r.h")
"../main.c", line 47: error #20: identifier "SMCLK_EN" is undefined
"../main.c", line 47: error #20: identifier "SELM_3" is undefined
"../main.c", line 47: error #20: identifier "DIVS_0" is undefined
"../main.c", line 66: error #20: identifier "EUSCI_A0_MODULE" is undefined
"../main.c", line 72: error #20: identifier "TIMER_A0_MODULE" is undefined
"../main.c", line 74: error #20: identifier "INT_TA0_0" is undefined
"../main.c", line 80: error #20: identifier "ADC14RES_1" is undefined
"../main.c", line 81: error #20: identifier "ADC14SSEL_4" is undefined
"../main.c", line 81: error #20: identifier "ADC14PDIV_0" is undefined
"../main.c", line 81: error #20: identifier "ADC14DIV_0" is undefined
"../main.c", line 83: error #20: identifier "ADC14VRSEL_0" is undefined
"../main.c", line 83: error #20: identifier "ADC14INCH_0" is undefined
"../main.c", line 130: remark #1528-D: (ULP 3.1) Detected flag polling using UCA0IFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 113: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"../main.c", line 113: remark #1532-D: (ULP 5.3) Detected sprintf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../main.c", line 115: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"../main.c", line 110: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"../main.c", line 113: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"../main.c", line 115: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"../main.c", line 110: remark #2623-D: (ULP 5.4) Detected an assignment to a type with size less than int. To avoid unnecessary sign extension, use int-sized types for local varaibles and convert to smaller types for static storage.
"../main.c", line 183: error #20: identifier "TIMER_A0_MODULE" is undefined
"../main.c", line 175: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
13 errors detected in the compilation of "../main.c".
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Thanks,
Marcus Pereira
email: mpereira30@gatech.edu