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.

[参考译文] TMS320F2800137:int64数据的低32位数据写入问题

Guru**** 2943400 points

Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1337536/tms320f2800137-data-writing-issue-for-the-low-32bit-for-a-int64-data

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

客户在尝试将值写入 int64 (long long)数据(使用以下代码)时发现一个紧急问题。 如观察窗口中所示、低32位没有写入预期数据。

    static long long s_i64test = 0;
    long long  i64testData;
    for(;;)
    {
        i64testData = 0x12345678987;
        s_i64test = i64testData;
   }

但是、他们将相同的代码复制到了我们的示例项目"led_ex1_blinky"中、其工作方式如下

我检查了编译器版本是否相同。  

您能帮助确认一下他们的项目可能的原因吗?  由于他们的项目需要在下周一交付、因此我们希望您能立即提供支持。 谢谢!

其项目链接:

tidrive.ext.ti.com/.../36f0a855-7eba-42cc-9c18-8b777f68e8aa

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

    尊敬的 Aki:

    所提供的链接似乎不起作用。 您可以重新发送吗?

    您能否查看分解体以了解两个项目之间的不同之处?

    此致!

    马瑞安

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

    您好、Ryan、

    请访问 tidrive.ext.ti.com/.../36f0a855-7eba-42cc-9c18-8b777f68e8aa  

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

    尊敬的 Aki:

    您确定这两个工程的所有编译器选项都相同吗? 您能否说明这两个项目之间的细微差异?

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

    我 在 C2000WARE 中使用了 led_ex1_blinky 示例。 您也可以自行检查。

    客户项目的编译器摘要:

    -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --tmu_support=tmu0 -Ooff --opt_for_speed=5 --fp_mode=relaxed --include_path="C:/Users/a0224194/Downloads/TMS280013x for TI/Code/Device/driverlib" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/Users/a0224194/Downloads/TMS280013x for TI/Code/Device/driverlib/inc" --include_path="C:/Users/a0224194/Downloads/TMS280013x for TI/Code/Device/include" --include_path="C:/Users/a0224194/Downloads/TMS280013x for TI/Code/Device/IQmath/include" --include_path="C:/Users/a0224194/Downloads/TMS280013x for TI/Code/User/Drv/include" --include_path="C:/Users/a0224194/Downloads/TMS280013x for TI/Prj" --advice:performance=all --define=DEBUG --define=_FLASH --c99 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi

    示例项目的编译器摘要

    -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 -Ooff --include_path="C:/Users/a0224194/workspace_v12/ccs12_4/F280015_HHC/led_ex1_blinky" --include_path="C:/ti/c2000/C2000Ware_4_03_00_00/device_support/f280013x/common/include" --include_path="C:/ti/c2000/C2000Ware_4_03_00_00/device_support/f280013x/headers/include" --include_path="C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=_FLASH --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi

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

    尊敬的 Aki:  

    看起来它们针对速度进行了优化、如果针对速度进行了优化、它们是否具有相同的行为? 此外,它们还具有--fp_mode=relaxed 设置。

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

    现在我没有用于测试它的电路板。 您能帮助检查一下吗?

    我认为这可能不是原因、因为两个项目的优化级别都关闭了。  

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

    尊敬的 Aki:

    我曾就这一点与我们的编译器专家讨论过、似乎不是来自编译器、但可能是 CCS 显示问题。

    他们使用的是哪个版本的 CCS?

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

    您好、Ryan、

    我们最终找出了根本原因、即客户选择了 FPU64支持。  

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

    尊敬的 Aki:

    很高兴听到这个消息。

    此致!

    马瑞安