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.

[参考译文] AM263P4-Q1:在版本库中启用了 DebugP_Assert_enabled

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1612273/am263p4-q1-is-debugp_assert_enabled-in-the-release-libraries

器件型号: AM263P4-Q1

您好:

关于此处的建议:

AM263Px MCU+ SDK:使用 MCU SDK 优化应用

其中提到了禁用断言和重新编译库。 但是、我本以为 TI 在构建时已经做到了这一点 提供 进行编程。 即

C:\ti\mcu_plus_sdk_am263px_10_02_00_15\source\kernel\nortos\lib\nortos.am263px.r5f.ti-arm-clang。 提供。 lib

C:\ti\mcu_plus_sdk_am263px_10_02_00_15\source\drivers\lib\drivers.am263px.r5f.ti-arm-clang。 提供。 lib

您能说出我的假设是否正确吗?

显然、如果您已经完成了、我不想重建发行库。

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

    否、在版本编译中不会自动禁用 DebugP_ASSERT。 默认情况下、在调试和发布配置文件中都启用断言。

    您必须禁用它、然后通过命令行重新构建 lib。 通常、SDK 中提供的发布版本 编译并不等同于最优化的版本、它只是有一些额外的优化标志、可以进行进一步的优化、必须根据要求进行进一步的优化。

    要禁用调试断言、请执行以下操作:
    -将 DebugP.h 更新为#define DebugP_assert_enabled 0
    -或将 DebugP_assert_enabled 定义为编译器构建宏并赋值 0
    -重建所有库 (software-dl.ti.com/.../MAKEFILE_BUILD_PAGE.html)
    -重建应用程序“

    此致、
    Shaunak

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

    好的、感谢您的确认。