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.

[参考译文] 编译器/TMS320F280049C:编译 flashapi_ex3_live_firmware_update 工程时出现编译错误

Guru**** 2539500 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/919837/compiler-tms320f280049c-compilation-error-while-building-flashapi_ex3_live_firmware_update-project

器件型号:TMS320F280049C
主题中讨论的其他器件:C2000WARE

工具/软件:TI C/C++编译器

您好!

按 原样编译 flashapi_ex3_live_firmware_update 示例工程时出现以下错误。 能否让一些人介绍一下以下错误?
以下路径中存在示例代码:
C:\ti\c2000Ware_3_02_00_00\driverlib\f28004x\examples\flash\ccs

****为项目 flashapi_ex3_live_firmware_update 构建配置 BANK0_FLASH **** ​

​"C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake"-k -j 4 all -O ​

 ​编译文件:"../device/f28004x_codestartbranch.asm ​

调用:C2000编译器 ​

"c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 /ti/c2000/C2000Ware_3_02_00_00/driverlib/f28004x/driverlib /device/f28004x_codestartbranch.asm -v28 -ml -mt --cla_support=cla2 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu0 -off -include_path="C:/Users/151837-Test/workspace_v10/flashapi_ex3_live_firmware_update /ti/c2000/C2000Ware_3_02_00_00/libraries/flash_api/f28004x/include/FlashAPI -include_path="C:cn_support=fulation="cub_support=vcuit-over-express-board-board-board-board_express-board-board-board_remote_display-board-code.html-board_expression-board-board-code_display_expression-board-board-cn_guide-board-cn_expression-cn_express-cn_guest-cn_guest-cn_guest-cn_guest-cn_guidep-cn=d_guest-cn_guide-intrade_display-cn_guest-cn=d_guide-ines=d_guide-ines=d_guide-ines=d_guide-ines=/Users/151837-Test/workspace_v10/flashapi_ex3_live_firmware_update/device /ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include ​

已完成构建:"./device/f28004x_codestartbranch.asm ​

 ​

构建文件:"../flashapi_ex3_live_firmware_update.c" ​

调用:C2000编译器 ​

"c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 /Users/151837-Test/workspace_v10/flashapi_ex3_live_firmware_update/device /ti/c2000/C2000Ware_3_02_00_00/driverlib/f28004x/driverlib "-v28 -ml -mt --cla_support=cla2 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu0 -off -include_path="C:/Users/151837-Test/workspace_v10/flashapi_ex3_live_firmware_update /ti/c2000/C2000Ware_3_02_00_00/libraries/flash_api/f28004x/include/FlashAPI -include_path="c:flash_support=tumu_support=vcu-over-exapi=vulation=g_ex-expremote_remote_bature=cover-ine_remote_remote_expremote_remote_expf-nature=cover-cover-ine_remote_remote_remote_remote_remote_remote_expremote_cover-ine_remote_remote_remote_cover-ine_remote_remote_expf-nature=cient="-cover-cover-ine-cover-cover-ine_remote_remote_remote_cover-ine_remote_remote_remote_remote_remote_/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include  ​

 ​

>>编译失败 ​

subdir_rules.mk:9:目标'flashapi_ex3_live_firmware_update.obj'的配方失败 ​

"./flashapi_ex3_live_firmware_update.c"、第612行(第28列):建议#2615-D:(性能)使用-fp_mode=relaxed 为 FP 除法启用 TMU 硬件支持。 ​

 ​

内部错误:C:\ti\ccs1010\ccs\tools\compiler\ti-cgt-C2000_20.2.1.LTS \bin\asm2000.exe 遇到分段错误 ​

         处理.text 段文件 C:\Users\151837~1\AppData\Local\Temp\{7618D77B-3464-4E1A-8AA3-1C8C6261F6A2}行2920时 ​

 ​

这是由 TI 汇编器中的缺陷引起的。 ​

TI 客户支持可能会建议解决方法来避免这种情况。 ​

 ​

升级到编译器的最新版本可能会解决此问题。 ​

 ​

在 E2E 支持论坛中联系 TI、网址 为 http://e2e.ti.com 、位于 ​

"开发工具"、"TI C/C++编译器"。  请参阅标题为的链接 ​

"提交问题"。 ​

 ​

我们需要看到整个错误消息以及完整、可重现的消息 ​

包括所有命令行选项的测试用例。 ​

 ​

gmake:***[flashapi_ex3_live_firmware_update.obj]错误1 ​

编译文件:"../device/device.c ​

调用:C2000编译器 ​

"c:/ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/bin/cl2000 /Users/151837-Test/workspace_v10/flashapi_ex3_live_firmware_update/device /ti/c2000/C2000Ware_3_02_00_00/driverlib/f28004x/driverlib /ti/ccs1010/ccs/tools/compiler/ti-cgt-c2000_20.2.1.LTS/include /device/device.c "-v28 -ml -mt --cla_support=cla2 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu0 -off -include_path="C:/Users/151837-Test/workspace_v10/flashapi_ex3_live_firmware_update /ti/c2000/C2000Ware_3_02_00_00/libraries/flash_api/f28004x/include/FlashAPI -include_path="C:cn_support=fulation="cus_board_suppression-board-board-board-board_pred_guide-ine-probuld_guide-ine-board.abi_guide-ine-board.cn=d_guide-board-ine-probuld_guide-board-ines=d_guide-board-intrab-board_guide-board-ines=d_guide-board.cn_guide-ines=d_guide-ines=-ine-intran.inc_guide-ine-ine-ine-ines=d_guide-over-ines=d_guide-probep-ines ​

已完成构建:"./device/device.c ​

 ​

gmake:目标"全部"不会由于错误而重新生成。 ​

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

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

    Suhail、

    我们的一位 Flash 专家将在美国假日的周一返回您的位置。

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

    Suhail、

    这是编译器问题。 我们在内部解决了这一问题、并将在下一个版本中进行修复。

    同时、为了解决该问题、我们需要删除 LCR #immediate 的实例。

    例如、

    替换 asm (" LCR 0x81000");

    使用

    asm (" MOVL XAR7、#0x81000");
    asm (" LCR *XAR7");

    谢谢、

    Sira

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

    感谢您的回复。 我更改了 asm ("  LCR 0x81000");在 flashapi_ex3_liveFirmwareUpdate.c 的行号470处、并且能够生成.out 文件

    谢谢、此致、

    Suhail B