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.

[参考译文] Compiler/LAUNCHXL-F28379D:Compiler crashes on function pointer call

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/894095/compiler-launchxl-f28379d-compiler-crashes-on-function-pointer-call

器件型号:LAUNCHXL-F28379D
主题中讨论的其他器件:C2000WARE

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

编译示例 C:\ti\c2000\C2000Ware_3_01_00_00\device_support\f2837xd\examples\cpu1\launchxl_f28379d\cpu01\ccs\cpu01\cpuU1_Flash 时编译器崩溃

它在以下代码上崩溃:

F2837xD_ADC.c

----------------------

OID CalAdcINL (uint16 ADC)

开关(ADC)

ADC_ADCA 案例:
if (0xFFFF!=*((UINT16*) CalAdcaINL))

//
//TRIM 函数被编程到 OTP 中、因此将其称为 OTP
//
(*CalAdcaINL)();

----------------------

如果我注释掉该字符串:

//(*CalAdcaINL)();

然后我可以编译该模块。

我创建了简单的 c 文件来重现此问题、生成的 pp 文件(在崩溃期间)如下所示:

----------------------

空 f()


void (* f趣味_ptr)(void)=(void (*)(void)) 0x0703B4;
(*FACY_PTR)();

----------------------

用于编译的命令:

C:\Users\Slava\workspace_v10\Test1\Debug>"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000 /Users/Slava/workspace_v10/Test1/f2837xd/common/deprecated -v28 -ml -cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vdiag_support=vcu_support=clu2 --include_path=/Users/Slava/workspace_v10/Test1 /Users/Slava/workspace_v10/Test1/f2837xd/headers/include --include_display_ines=-cus_prob="-board_supment="-cus_board_supment=/Users/Slava/workspace_v10/Test1/f2837xd/common/include /ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include --board_board_supment="-***="-cus_supment="-cus_board_supment="-cus_board_supment="-cus_supment="-board_supment="-cn"-board_supment="-cn_supment="-cn"-cus_board_supment_board_supment="-cn_supment="-cn_supment="-cn"-***.come"-cn"-cn"-cn=v-cn_ov

请提供帮助

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

    感谢您花时间提交测试案例。   遗憾的是、您在 本论坛主题中讨论了该问题

    谢谢、此致、

    乔治