TI中文支持网
TI专业的中文技术问题搜集分享网站

MSP432P401R: 在ccs上编译时遇到了个奇怪的问题,我没办法搞得定

Part Number: MSP432P401R

**** Build of configuration Debug for project Button_change_oled_display ****

"C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 8 all -OBuilding target: "Button_change_oled_display.out"
Invoking: ARM Linker
Flags: -mv7M4 –code_state=16 –float_support=FPv4SPD16 -me –advice:power=all –define=__MSP432P401R__ –define=ccs -g –gcc –diag_warning=225 –diag_wrap=off –display_error_number –abi=eabi -z -m"Button_change_oled_display.map" –heap_size=1024 –stack_size=512 -i"C:/ti/ccs1040/ccs/ccs_base/arm/include" -i"C:/ti/simplelink_msp432p4_sdk_3_40_01_02/source" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" –reread_libs –diag_wrap=off –display_error_number –warn_sections –xml_link_info="Button_change_oled_display_linkInfo.xml" –rom_model
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -@"ccsLinker.opt" -o "Button_change_oled_display.out"
<Linking>
makefile:308: recipe for target 'Button_change_oled_display.out' failed
gmake[1]: *** [Button_change_oled_display.out] Error -2147483645
makefile:304: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

Susan Yang:

请给出您console内的全部信息,谢谢。

另外您编译的是自己的程序还是TI例程?若是例程的话,请给出路径,谢谢

,

jiahao chen:

**** Clean-only build of configuration Debug for project TI_oled_display ****

"C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O DEL /F "TI_oled_display.hex" "TI_oled_display.out" DEL /F "main.obj" "oled.obj" "startup_msp432p401r_ccs.obj" "system_msp432p401r.obj" DEL /F "main.d" "oled.d" "startup_msp432p401r_ccs.d" "system_msp432p401r.d" 找不到 C:\ti\ccs1040\ccsos\TI_oled_display\Debug\TI_oled_display.hexFinished clean

**** Build Finished ****

**** Build of configuration Debug for project TI_oled_display ****

"C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../main.c"Invoking: ARM Compiler"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 –code_state=16 –float_support=FPv4SPD16 -me –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include/CMSIS" –include_path="C:/ti/ccs1040/ccsos/TI_oled_display" –include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include" –advice:power=all –define=__MSP432P401R__ –define=ccs -g –gcc –diag_warning=225 –diag_wrap=off –display_error_number –abi=eabi –preproc_with_compile –preproc_dependency="main.d_raw" "../main.c" >> Compilation failuresubdir_rules.mk:9: recipe for target 'main.obj' failed"..\oled.h", line 5: fatal error #1965: cannot open source file "ti/devices/msp432p4xx/driverlib/driverlib.h"1 catastrophic error detected in the compilation of "../main.c".Compilation terminated.gmake: *** [main.obj] Error 1Building file: "../oled.c"Invoking: ARM Compiler"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 –code_state=16 –float_support=FPv4SPD16 -me –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include/CMSIS" –include_path="C:/ti/ccs1040/ccsos/TI_oled_display" –include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include" –advice:power=all –define=__MSP432P401R__ –define=ccs -g –gcc –diag_warning=225 –diag_wrap=off –display_error_number –abi=eabi –preproc_with_compile –preproc_dependency="oled.d_raw" "../oled.c" >> Compilation failuresubdir_rules.mk:9: recipe for target 'oled.obj' failed"..\oled.h", line 5: fatal error #1965: cannot open source file "ti/devices/msp432p4xx/driverlib/driverlib.h"1 catastrophic error detected in the compilation of "../oled.c".Compilation terminated.gmake: *** [oled.obj] Error 1Building file: "../startup_msp432p401r_ccs.c"Invoking: ARM Compiler"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 –code_state=16 –float_support=FPv4SPD16 -me –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include/CMSIS" –include_path="C:/ti/ccs1040/ccsos/TI_oled_display" –include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include" –advice:power=all –define=__MSP432P401R__ –define=ccs -g –gcc –diag_warning=225 –diag_wrap=off –display_error_number –abi=eabi –preproc_with_compile –preproc_dependency="startup_msp432p401r_ccs.d_raw" "../startup_msp432p401r_ccs.c"Finished building: "../startup_msp432p401r_ccs.c" Building file: "../system_msp432p401r.c"Invoking: ARM Compiler"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7M4 –code_state=16 –float_support=FPv4SPD16 -me –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include/CMSIS" –include_path="C:/ti/ccs1040/ccsos/TI_oled_display" –include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" –include_path="C:/ti/ccs1040/ccs/ccs_base/arm/include" –advice:power=all –define=__MSP432P401R__ –define=ccs -g –gcc –diag_warning=225 –diag_wrap=off –display_error_number –abi=eabi –preproc_with_compile –preproc_dependency="system_msp432p401r.d_raw" "../system_msp432p401r.c""../system_msp432p401r.c", line 156: remark #2624-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."../system_msp432p401r.c", line 189: remark #2624-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.Finished building: "../system_msp432p401r.c" gmake: Target 'all' not remade because of errors.

**** Build Finished ****

我导入了两个文件编译了都变成这样子,头文件路径那里时灵时不灵,我改了头文件路径一样找不到那个lib文件

,

jiahao chen:

我是在ccs上编译的,我第一个工程没问题正常,第二个就有问题,蒙了

,

Susan Yang:

jiahao chen 说: fatal error #1965: cannot open source file "ti/devices/msp432p4xx/driverlib/driverlib.h"

看起来还是如您所说的路径包含问题导致的

jiahao chen 说:第二个就有问题

请问现在正常编译了吗?若还是不行,请您上传一下工程,我们具体看一下

赞(0)
未经允许不得转载:TI中文支持网 » MSP432P401R: 在ccs上编译时遇到了个奇怪的问题,我没办法搞得定
分享到: 更多 (0)