include 添加我也添加了但是还是出现问题,下面附件的图是debug出现的问题,release时出现的则是#include <intrinsics.h>等找不到。请求帮助解答。谢谢!
下面是debug时console的内容:
**** Build of configuration Debug for project AFE4490EVM ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building target: AFE4490EVM.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmspx –abi=eabi –advice:power=all -g –define=__MSP430F5529__ –diag_warning=225 –display_error_number –diag_wrap=off –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU23 –silicon_errata=CPU40 –printf_support=minimal -z -m"AFE4490EVM.map" –heap_size=160 –stack_size=160 –use_hw_mpy=F5 -i"C:/ti/ccsv5/ccs_base/msp430/include" -i"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/lib" -i"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/include" -i"C:/ti/ccsv5/ccs_base/msp430/lib" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="AFE4490EVM_linkInfo.xml" –rom_model -o "AFE4490EVM.out" "./main.obj" "../lnk_msp430f5529.cmd" "../msp430USB.cmd" -l"libmath.a" -l"libc.a"<Linking>
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changes using LPMx or _bis_SR_register() or __low_power_mode_x() in this project.
undefined first referenced
symbol in file ——— —————-
AFE44x0_Reg_Read ./main.obj AFE44x0_Reg_Write ./main.obj AFE44xx_PowerOn_Init ./main.obj Disable_AFE44x0_SPI_Read ./main.obj Disable_AFE44xx_DRDY_Interrupt ./main.obj Enable_AFE44x0_SPI_Read ./main.obj Enable_AFE44xx_DRDY_Interrupt ./main.obj Init_FLL_Settle ./main.obj SetVCore ./main.obj USB_connectionInfo ./main.obj USB_connectionState ./main.obj USB_disable ./main.obj USB_handleVbusOnEvent ./main.obj USB_init ./main.obj USB_setEnabledEvents ./main.obj XT2_Start ./main.obj cdcReceiveDataInBuffer ./main.obj cdcSendDataInBackground ./main.obj cdcSendDataWaitTilDone ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "AFE4490EVM.out" not built
>> Compilation failure
gmake: *** [AFE4490EVM.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
下面是release时,console的内容:
**** Build of configuration Release for project AFE4490EVM ****
"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building file: C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/main.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmspx –abi=eabi -O2 –include_path="C:/ti/ccsv5/ccs_base/msp430/include" –include_path="C:/ti/ccsv5/tools/compiler/msp430_4.2.1/include" –include_path="C:/Users/a0273681/Documents/Aroul/Projects/Others/F5529/MSP430F5529__Projects/AFE4400-AFE4490EVM_FW_SRC/AFE4490EVM_FW_SRC_v1.4_Release/AFE4490" –include_path="C:/Users/a0273681/Documents/Aroul/Projects/Others/F5529/MSP430F5529__Projects/AFE4400-AFE4490EVM_FW_SRC/AFE4490EVM_FW_SRC_v1.4_Release/HAL" –include_path="C:/Users/a0273681/Documents/Aroul/Projects/Others/F5529/MSP430F5529__Projects/AFE4400-AFE4490EVM_FW_SRC/AFE4490EVM_FW_SRC_v1.4_Release/USB" –include_path="C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/AFE4490" –include_path="C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/HAL" –include_path="C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/USB" –advice:power=all –define=__MSP430F5529__ –diag_warning=225 –diag_wrap=off –display_error_number –silicon_errata=CPU21 –silicon_errata=CPU22 –silicon_errata=CPU23 –silicon_errata=CPU40 –printf_support=minimal –preproc_with_compile –preproc_dependency="main.pp" "C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/main.c"
"C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/main.c", line 15: fatal error #1965: cannot open source file "descriptors.h"
1 catastrophic error detected in the compilation of "C:/AFE4490EVMFWSRC-v1.4/AFE4490EVM_FW_SRC_v1.4_Release/main.c".
Compilation terminated.
>> Compilation failure
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Will wei:
release时出现的错误
HG:
你看看你的工程里有没有include “descriptor.h”文件。
Will wei:
回复 HG:
有的,如我的附件所示,include里面存在的。请问为何还显示没有此.h文件啊?
Susan Yang:
回复 Will wei:
您是直接打开TI例程并未做改变?您可以先尝试一下 http://processors.wiki.ti.com/index.php/Include_paths_and_options 给出的方法。
您的这个错误是典型的包含错误或权限错误