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.

[参考译文] MSP430FR2522:MSP430FR2522

Guru**** 1127450 points
Other Parts Discussed in Thread: MSP430FR2522, MATHLIB
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1270543/msp430fr2522-msp430fr2522

器件型号:MSP430FR2522
主题中讨论的其他器件: MATHLIB

我收到编译错误:

>>编译失败
capTIvate/advanced/subdir_rules.mk:目标"captate/advanced/Capt_Manager.obj"的配方失败
"...."/captivate/ADVANCED/CAPT_Manager.c 第44行:致命错误#1965:无法打开源文件"CAPT_Type.h"
1在编译"../captivate/ADVANCED/CAPT_Manager.c "时检测到灾难性错误。
编译终止。
gmake:***[CAPTATE/ADVANCED/CAPT_MANAGER.obj]错误1

但文件位于 project -> propertiies -> Build -> MSP430 Compiler -> Include Options under $(project_root|/captureate_config)的路径中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我遇到 两种错误类型: #35和#1965

    >>编译失败
    CAPTIVATE_APP/subdir_rules.mk:目标"capte_app/Capt_App.obj"的配方失败
    "..\Capitate\base\base\rom_headers/rom_capitate_msp430fr2522_family.h"、第578行:致命错误#35:#error 指令:"不支持大代码/数据模型"
    1在编译"../captive_app/Capt_App.c"时检测到灾难性错误。
    编译终止。
    gmake:***[CAPTATE_APP/Capt_App.obj]错误1

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您能提供项目的图片吗?

    或者你可以在那里加载这个项目、看看它是否 有同样的问题。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。


    ****项目取消的配置调试构建****

    "C:\\ti\\ccs1240\\ccs\\utils\\bin\\gmake"-k -j 24 all -O

    生成文件:"../captivate/ADVANCED/CAPT_Manager.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include -vmspx --code_model=small --data_model=small -O3 - opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /captivate/ADVANCED/CAPT_Manager.c --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include

    >>编译失败
    capTIvate/advanced/subdir_rules.mk:目标"captate/advanced/Capt_Manager.obj"的配方失败
    "...."/captivate/ADVANCED/CAPT_Manager.c 第44行:致命错误#1965:无法打开源文件"CAPT_Type.h"
    1在编译"../captivate/ADVANCED/CAPT_Manager.c "时检测到灾难性错误。
    编译终止。
    gmake:***[CAPTATE/ADVANCED/CAPT_MANAGER.obj]错误1
    生成文件:"../captivate/COMM/FunctionTimer.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include -vmspx --code_model=small --data_model=small -O3 - opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /captivate/COMM/FunctionTimer.c --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include

    >>编译失败
    CAPTIVATE/COMM/subdir_rules.mk:目标"captivate/COMM/FunctionTimer.obj"的配方失败
    "..\Capitate\comm\Funclib.h"、第 Timer_Definitions 55行:致命错误#1965:无法打开源文件"driverlib.h"
    1在编译"../captivate/COMM/FunctionTimer.c "时检测到灾难性错误。
    编译终止。
    gmake:***[CAPTATE/COMM/FunctionTimer.obj]错误1
    生成文件:"../captivate/COMM/CAPT_Interface.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 -vmspx --code_model=small --data_model=small -O3 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /captivate/COMM/CAPT_Interface.c --include_path="C:--include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --advice

    >>编译失败
    CAPTIVATE/COMM/subdir_rules.mk:目标"captate/COM/Capt_Interface.obj"的配方失败
    "..\Capitate\comm\CAPT_CommConfig.h"、第72行:致命错误#1965:无法打开源文件"CAPT_UserConfig.h"
    1在编译"../captivate/COMM/CAPT_Interface.c "时检测到灾难性错误。
    编译终止。
    gmake:***[CAPTATE/COMM/Capt_Interface.obj]错误1
    生成文件:"../captivate/COMM/I2CSlave.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include -vmspx --code_model=small --data_model=small -O3 - opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /captivate/COMM/I2CSlave.c --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include

    >>编译失败
    CAPTIVATE/COMM/subdir_rules.mk:目标"captureate/COMM/I2CSlave.obj"的配方失败
    "..\Capitate\comm\Ivoic.h" Slave_Definitions、第50行:致命错误#1965:无法打开源文件"rom_driverlib.h"
    1在编译"../captivate/COMM/I2CSlave.c "时检测到灾难性错误。
    编译终止。
    gmake:***[CAPTATE/COM/I2CSlave.obj]错误1
    生成文件:"../captivate/COMM/UART.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 -vmspx --code_model=small --data_model=small -O3 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /captivate/COMM/UART.c --include_path="C:--include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --advice

    >>编译失败
    CAPTIVATE/COMM/subdir_rules.mk:目标"captureate/COMM/uart.obj"的配方失败
    "..\Capitate\cm\UART_Definitions.h"、第52行:致命错误#1965:无法打开源文件"rom_driverlib.h"
    1在编译"../captivate/COMM/UART.c "时检测到灾难性错误。
    编译终止。
    gmake:***[CAPTATE/COM/UART.obj]错误1
    生成文件:"../main.c"
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /Users/MAbdi/OneDrive -vmspx --code_model=small --data_model=small -O3 - opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib/MSP430FR2xx_4xx

    >>编译失败
    subdir_rules.mk:9:目标"main.obj"的配方失败
    "../main.c"、第52行:致命错误#1965:无法打开源文件"captureate.h"
    1在编译"../main.c"时检测到灾难性错误。
    编译终止。
    gmake:***[main.obj]错误1
    构建文件:"../captive_app/Capt_bsp.c"
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/demo /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/mathlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/ADVANCED /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_app -vmspx --code_model=small --data_model=small -O3 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_config /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/BASE /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib/MSP430FR2xx_4xx /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/COMM
    已完成构建:"../captive_app/Capt_bsp.c"

    生成文件:"../captivate/BASE/CAPT_ISR.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include -vmspx --code_model=small --data_model=small -O3 - opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include /captivate/BASE/CAPT_ISR.c --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1
    已完成建设:"../captivate/BASE/CAPT_ISR.c "

    生成文件:"../captureate_app/Capt_App.c"
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/demo /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/mathlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/ADVANCED /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_app -vmspx --code_model=small --data_model=small -O3 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_config /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/BASE /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib/MSP430FR2xx_4xx /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/COMM
    已完成构建:"../captureate_app/Capt_App.c"

    生成文件:"../captivate_config/Capt_UserConfig.c"
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/demo /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/mathlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/ADVANCED /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_app -vmspx --code_model=small --data_model=small -O3 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_config /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/BASE /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib/MSP430FR2xx_4xx /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/COMM
    已完成构建:"../captureate_config/Capt_UserConfig.c"

    生成文件:"../demo/demo.c
    调用:MSP430编译器
    "c:/ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/bin/cl430 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/demo /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/mathlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/ADVANCED /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_app -vmspx --code_model=small --data_model=small -O3 --opt_for_speed=0 --use_hw_mpy=F5 --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate_config /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/BASE /ti/ccs1240/ccs/tools/compiler/ti-cgt-msp430_21.6.1.LTS/include --include_path="C:/ti/ccs1240/ccs/ccs_base/msp430/include --include_path="C:/Users/MAbdi/Documents/TiMSP430/workspace/cancel1 /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/driverlib/MSP430FR2xx_4xx /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate /Users/MAbdi/Documents/TiMSP430/workspace/cancel1/captivate/COMM /demo/demo.c
    已完成建设:"../demo/demo.c "

    gmake:由于错误、未重制目标"all"。

    ****构建完成****

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您可以上传代码吗? 如果没有调试、IDE 似乎已经看到存在一些错误。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请给我发送安全链接、上传代码。  

    谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您能否将其直接上传到 E2E?