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.

[参考译文] CCS/DRV8301-69M-KIT:首次使用 IQmpy 编译后出错

Guru**** 2538950 points
Other Parts Discussed in Thread: MOTORWARE

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/944045/ccs-drv8301-69m-kit-error-after-first-build-with-iqmpy

器件型号:DRV8301-69M-KIT
主题中讨论的其他器件:MOTORWAREDRV8301

工具/软件:Code Composer Studio

我正在使用 CCS 来完成 InstaSPIN 实验、并一直运行在错误状态中。 例如、我可以构建并下载调试 proj_lab02c。 如果我刚刚启动 CCS、则它都可以正常工作、并且可以按预期运行项目。 但是、如果我停止执行、然后重新构建、它将给我一个错误、例如  

我可以运行 Clean、Rebuild Project、也不能清除错误。 我可以关闭 CCS、然后重新打开、它在第一次启动时再次正常工作。 有人能告诉我如何解决这个烦人的问题吗?  

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

    您好!

    屏幕截图的链接已断开。 您可以重新发布吗?

    如果您仍有问题、请参阅以下常见问题解答:

    https://e2e.ti.com/support/tools/ccs/f/81/t/821597?tisearch=e2e-sitesearch&keymatch=faq%3Atrue

    谢谢

    Ki

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

    感谢您的回答。 这是图像。

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

    您能否发布编译控制台中显示的编译错误?

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

    当我关闭项目调试时、项目图标旁边会出现一个红色的 x。 当我告诉它重建时、它没有错误、但当我尝试再次开始调试时、它会显示下面的对话框。

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

    是的、这是因为您遇到了一些构建错误。 请在构建控制台中发布所有构建输出。

    谢谢

    Ki

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

    好的、当我打开 CCS 时、点击工程、然后点击这里的调试、这是我在构建控制台中获得的结果。

    小问题*** 第一次运行


    ****为项目 proj_lab02c 构建配置版本****

    "C:\\ti\\ccs1010\\ccs\\utils\bin\\gmake"-k all

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 -v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include /ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src -include_path="C:/ti/motorware/motorware_1_01_00_18 -g -define=fast_rom_V1p6 -diag_warning=225 --include_path="C:-preproc_dependency"-preproc_error_preproc_daitive"-"preproc_dration_rebuild_error-"preproc_drand_drand_dapritive"
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 -v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src -include_path="C:/ti/motorware/motorware_1_01_00_18 -g -define=fast_rom_V1p6 -diag_warning=225 --include_path="C:-preproc_dependency"-"preproc_raination_rebuild"-"preproc_drand_drand_daprit_rand_dapruation"-/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 "-v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include "-include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src "-include_path="C:/ti/motorware/motorware_1_01_00_18 "-g -define=fast_rom_V1p6 -diag_warning=225 --preproc_dependency"-"preproc_raid_/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c -pred_error_prud_prude_prude_
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 "-v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -"-include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include "-include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src "-include_path="C:/ti/motorware/motorware_1_01_00_18 "-g -define=fast_rom_V1p6 -diag_warning=225 --preproc_userage=/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c -preproc_use_display_error-"preproc_dependency"-"preproc_ration_rebuild"-"preproc_us_rom_rom_rom_us"-preproc_defination_dait_us"
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c

    构建目标:"Proj_lab02c.out"
    调用:C2000链接器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 -v28 -ml -mt -O2 -g -define=FAST_ROM_V1p6 -diag_warning=225 -display_error_number -z -m"proj_lab02c.map"--stack_size=0x3B0 -warn_sections -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/lib -i"C:lab02c.map"---track_size=0x3B0 -warn_SECTIONS -inese-trad_line_link_trad_trad_else-express-trad_track-rom-xml-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom_lin /ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include rom_model -o "proj_lab02c.out"-lrts2800_ml.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2806x/2806xRevB_FastSpinROMSymbols.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/lib/f28x/32b/IQmath.lib "./CodeStartBranch.obj "./adc.obj "./clark.obj "./clk.obj "./code.obj ".filter./trab."/m./late.obj "./pr./late.obj "./out./late.obj ".pobj ".obj "./out./late.obj "./late.obj "./filter./pr./pr./out./late.obj "./late.obj "./filterm./late.obj "./pr./out./pr./out./late.obj "./out./late.obj "././././././.obj /ti/motorware/motorware_1_01_00_18/sw/ide/ccs/cmd/f2806x/f28069F_ram_lnk.cmd。

    完成构建目标:"Proj_lab02c.out"

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

    小图标

    ***** 运行调试关闭并更改文件后、我保存了微小的更改并再次单击调试、这将出现在调试控制台中


    ****为项目 proj_lab02c 构建配置版本****

    "C:\\ti\\ccs1010\\ccs\\utils\bin\\gmake"-k all

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 -v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include /ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src -include_path="C:/ti/motorware/motorware_1_01_00_18 -g -define=fast_rom_V1p6 -diag_warning=225 --include_path="C:-preproc_dependency"-preproc_error_preproc_daitive"-"preproc_dration_rebuild_error-"preproc_drand_drand_dapritive"
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 -v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src -include_path="C:/ti/motorware/motorware_1_01_00_18 -g -define=fast_rom_V1p6 -diag_warning=225 --include_path="C:-preproc_dependency"-"preproc_raination_rebuild"-"preproc_drand_drand_daprit_rand_dapruation"-/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 "-v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include "-include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src "-include_path="C:/ti/motorware/motorware_1_01_00_18 "-g -define=fast_rom_V1p6 -diag_warning=225 --preproc_dependency"-"preproc_raid_/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c -pred_error_prud_prude_prude_
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab02c.c

    编译文件:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c
    调用:C2000编译器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 "-v28 -ml -mt -O2 -include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src -"-include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include "-include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src "-include_path="C:/ti/motorware/motorware_1_01_00_18 "-g -define=fast_rom_V1p6 -diag_warning=225 --preproc_userage=/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c -preproc_use_display_error-"preproc_dependency"-"preproc_ration_rebuild"-"preproc_us_rom_rom_rom_us"-preproc_defination_dait_us"
    完工:"c:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c

    构建目标:"Proj_lab02c.out"
    调用:C2000链接器
    "c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 -v28 -ml -mt -O2 -g -define=FAST_ROM_V1p6 -diag_warning=225 -display_error_number -z -m"proj_lab02c.map"--stack_size=0x3B0 -warn_sections -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/lib -i"C:lab02c.map"---track_size=0x3B0 -warn_SECTIONS -inese-trad_line_link_trad_trad_else-express-trad_track-rom-xml-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom-rom_lin /ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include rom_model -o "proj_lab02c.out"-lrts2800_ml.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2806x/2806xRevB_FastSpinROMSymbols.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/lib/f28x/32b/IQmath.lib "./CodeStartBranch.obj "./adc.obj "./clark.obj "./clk.obj "./code.obj ".filter./trab."/m./late.obj "./pr./late.obj "./out./late.obj ".pobj ".obj "./out./late.obj "./late.obj "./filter./pr./pr./out./late.obj "./late.obj "./filterm./late.obj "./pr./out./pr./out./late.obj "./out./late.obj "././././././.obj /ti/motorware/motorware_1_01_00_18/sw/ide/ccs/cmd/f2806x/f28069F_ram_lnk.cmd。

    完成构建目标:"Proj_lab02c.out"

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

    我先前发送的对话框会弹出。

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

    [引用用户="Terry Harrison ]下图。

    我认为无法解决错误来自 Eclipse Codan 静态代码分析器、而不是来自编译器的错误。 您显示的编译输出没有编译器中的任何错误。
    Eclipse Codan 分析中的错误会在尝试启动调试会话时显示"Errors exists in required projects"对话框。

    默认情况下、在 CCS 中禁用 Codan、但可能是在您的工作区/项目中启用了 Codan。 有关   更多信息,请参见 Code Composer Studio 用户指南中的 Code Analysis。

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

    是的、它可能来自 Codan。

    选中"Problems"视图的"Type"列。 如果显示为"语义错误"、则表示为 Codan 错误

    谢谢

    Ki

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

    好的、谢谢、让我看看我是否能弄清楚如何切断这个 Codan。 很抱歉、我没有收到您的回复通知、直到今晚我才看到。 可以放心地认为、当它编译并运行时、即使它确实运行了更新的代码、也是如此?  

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

    是的、如果唯一的错误是 Codan 错误。