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

ccs9.1编译msp430fr6989 launchpad报错

这是在添加outofbox例程中用到的hal_lcd头文件时出现的问题
**** Build of configuration Debug for project LCDTEST ****

"D:\\ti\\ccs\\utils\\bin\\gmake" -k -j 8 all -OBuilding file: "../hal_LCD.c"
Invoking: MSP430 Compiler
"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx –code_model=large –data_model=restricted –near_data=none –use_hw_mpy=F5 –include_path="D:/ti/ccs/ccs_base/msp430/include" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST/driverlib/MSP430FR5xx_6xx" –include_path="D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" –preinclude="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" –advice:power="all" –advice:hw_config=all –define=__MSP430FR6989__ –define=_MPU_ENABLE -g –printf_support=minimal –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU40 –preproc_with_compile –preproc_dependency="hal_LCD.d_raw" "../hal_LCD.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'hal_LCD.obj' failed
Command-line error #1966: cannot open source file "C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST": Invalid argument
1 catastrophic error detected in the compilation of "../hal_LCD.c".
Compilation terminated.
gmake: *** [hal_LCD.obj] Error 1
Building file: "../main.c"
Invoking: MSP430 Compiler
"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx –code_model=large –data_model=restricted –near_data=none –use_hw_mpy=F5 –include_path="D:/ti/ccs/ccs_base/msp430/include" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST/driverlib/MSP430FR5xx_6xx" –include_path="D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" –preinclude="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" –advice:power="all" –advice:hw_config=all –define=__MSP430FR6989__ –define=_MPU_ENABLE -g –printf_support=minimal –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU40 –preproc_with_compile –preproc_dependency="main.d_raw" "../main.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
Command-line error #1966: cannot open source file "C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST": Invalid argument
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

灰小子:

错误信息说的很清楚:Command-line error #1966: cannot open source file "C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST": Invalid argument

编译器没有找到那个文件,建议确认下文件是否存在?

user6003002:

回复 灰小子:

我确认文件存在,就位于"C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST"当中

Susan Yang:

回复 user6003002:

您不应该使用 –preinclude 而是应该使用–include_path

Susan Yang:

回复 user6003002:

user6003002:

回复 Susan Yang:

改为使用–include_path后出现如下错误

**** Build of configuration Debug for project LCDTEST ****

"D:\\ti\\ccs\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../main.c"Invoking: MSP430 Compiler"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx –code_model=large –data_model=restricted –near_data=none –use_hw_mpy=F5 –include_path="D:/ti/ccs/ccs_base/msp430/include" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST/driverlib/MSP430FR5xx_6xx" –include_path="D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" –advice:power=all –advice:hw_config=all –define=__MSP430FR6989__ –define=_MPU_ENABLE -g –printf_support=minimal –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU40 –preproc_with_compile –preproc_dependency="main.d_raw" "../main.c"Finished building: "../main.c" Building file: "../hal_LCD.c"Invoking: MSP430 Compiler"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx –code_model=large –data_model=restricted –near_data=none –use_hw_mpy=F5 –include_path="D:/ti/ccs/ccs_base/msp430/include" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" –include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST/driverlib/MSP430FR5xx_6xx" –include_path="D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" –advice:power=all –advice:hw_config=all –define=__MSP430FR6989__ –define=_MPU_ENABLE -g –printf_support=minimal –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU40 –preproc_with_compile –preproc_dependency="hal_LCD.d_raw" "../hal_LCD.c""../hal_LCD.c", line 99: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead"../hal_LCD.c", line 100: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead"../hal_LCD.c", line 101: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead"../hal_LCD.c", line 102: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead"../hal_LCD.c", line 103: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead"../hal_LCD.c", line 150: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier"../hal_LCD.c", line 155: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier"../hal_LCD.c", line 156: remark #2553-D: (ULP 14.1) Array index (involving "t") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 158: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier"../hal_LCD.c", line 161: remark #1545-D: (ULP 14.1) Array index of type "int". Recommend using "unsigned int""../hal_LCD.c", line 161: remark #2553-D: (ULP 14.1) Array index (involving "j") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 172: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead"../hal_LCD.c", line 155: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier"../hal_LCD.c", line 156: remark #2553-D: (ULP 14.1) Array index (involving "t") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 158: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier"../hal_LCD.c", line 161: remark #1545-D: (ULP 14.1) Array index of type "int". Recommend using "unsigned int""../hal_LCD.c", line 161: remark #2553-D: (ULP 14.1) Array index (involving "j") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 172: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead"../hal_LCD.c", line 185: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 186: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 191: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 191: remark #2553-D: (ULP 14.1) Array index (involving "c") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 192: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 192: remark #2553-D: (ULP 14.1) Array index (involving "c") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 197: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 197: remark #2553-D: (ULP 14.1) Array index (involving "c") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 198: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 198: remark #2553-D: (ULP 14.1) Array index (involving "c") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 203: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int""../hal_LCD.c", line 204: remark #2553-D: (ULP 14.1) Array index (involving "position") of type "int". Recommend using "unsigned int"Finished building: "../hal_LCD.c" Building target: "LCDTEST.out"Invoking: MSP430 Linker"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx –code_model=large –data_model=restricted –near_data=none –use_hw_mpy=F5 –advice:power=all –advice:hw_config=all –define=__MSP430FR6989__ –define=_MPU_ENABLE -g –printf_support=minimal –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU40 -z -m"LCDTEST.map" –heap_size=160 –stack_size=160 –cinit_hold_wdt=on -i"D:/ti/ccs/ccs_base/msp430/include" -i"D:/ti/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"D:/ti/ccs/ccs_base/msp430/lib/FR59xx" -i"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/lib" -i"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" –priority –reread_libs –define=_MPU_ENABLE –diag_wrap=off –display_error_number –warn_sections –xml_link_info="LCDTEST_linkInfo.xml" –use_hw_mpy=F5 –rom_model -o "LCDTEST.out" "./hal_LCD.obj" "./main.obj" "./driverlib/MSP430FR5xx_6xx/adc12_b.obj" "./driverlib/MSP430FR5xx_6xx/aes256.obj" "./driverlib/MSP430FR5xx_6xx/comp_e.obj" "./driverlib/MSP430FR5xx_6xx/crc.obj" "./driverlib/MSP430FR5xx_6xx/crc32.obj" "./driverlib/MSP430FR5xx_6xx/cs.obj" "./driverlib/MSP430FR5xx_6xx/dma.obj" "./driverlib/MSP430FR5xx_6xx/esi.obj" "./driverlib/MSP430FR5xx_6xx/eusci_a_spi.obj" "./driverlib/MSP430FR5xx_6xx/eusci_a_uart.obj" "./driverlib/MSP430FR5xx_6xx/eusci_b_i2c.obj" "./driverlib/MSP430FR5xx_6xx/eusci_b_spi.obj" "./driverlib/MSP430FR5xx_6xx/framctl.obj" "./driverlib/MSP430FR5xx_6xx/framctl_a.obj" "./driverlib/MSP430FR5xx_6xx/gpio.obj" "./driverlib/MSP430FR5xx_6xx/hspll.obj" "./driverlib/MSP430FR5xx_6xx/lcd_c.obj" "./driverlib/MSP430FR5xx_6xx/mpu.obj" "./driverlib/MSP430FR5xx_6xx/mpy32.obj" "./driverlib/MSP430FR5xx_6xx/mtif.obj" "./driverlib/MSP430FR5xx_6xx/pmm.obj" "./driverlib/MSP430FR5xx_6xx/ram.obj" "./driverlib/MSP430FR5xx_6xx/ref_a.obj" "./driverlib/MSP430FR5xx_6xx/rtc_b.obj" "./driverlib/MSP430FR5xx_6xx/rtc_c.obj" "./driverlib/MSP430FR5xx_6xx/saph.obj" "./driverlib/MSP430FR5xx_6xx/saph_a.obj" "./driverlib/MSP430FR5xx_6xx/sdhs.obj" "./driverlib/MSP430FR5xx_6xx/sfr.obj" "./driverlib/MSP430FR5xx_6xx/sysctl.obj" "./driverlib/MSP430FR5xx_6xx/timer_a.obj" "./driverlib/MSP430FR5xx_6xx/timer_b.obj" "./driverlib/MSP430FR5xx_6xx/tlv.obj" "./driverlib/MSP430FR5xx_6xx/uups.obj" "./driverlib/MSP430FR5xx_6xx/wdt_a.obj" "../lnk_msp430fr6989.cmd" -llibmpu_init.a -llibmath.a -llibc.a <Linking> remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. undefined first referencedremark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.remark #10372-D: (ULP 4.1) Detected uninitialized Port E in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins. >> Compilation failuremakefile:181: recipe for target 'LCDTEST.out' failed symbol in file ——— —————- mode ./hal_LCD.obj error #10234-D: unresolved symbols remainerror #10010: errors encountered during linking; "LCDTEST.out" not builtgmake[1]: *** [LCDTEST.out] Error 1makefile:177: recipe for target 'all' failedgmake: *** [all] Error 2

**** Build Finished ****

Susan Yang:

回复 user6003002:

已经在 e2echina.ti.com/…/533767 给出了回复,请看一下

赞(0)
未经允许不得转载:TI中文支持网 » ccs9.1编译msp430fr6989 launchpad报错
分享到: 更多 (0)