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.

[参考译文] RM57L843:断言错误-无法解析函数

Guru**** 2551110 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/949640/rm57l843-assert-error---function-could-not-resolved

器件型号:RM57L843
主题中讨论的其他器件:HALCOGEN

您好!

当我包含 assert.h 并使用 Assert API 时、编译后会显示错误"断言函数无法解析" 、当我导航到声明时、它会在 assert.h 中显示正确的声明

请告诉我需要做些什么来解决此错误、

谢谢、

Vikas N.

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

    您好!

    该错误表示没有函数 assert()。 assert()是一个宏而不是函数。

    assert()宏也在由 HALCOGen 生成的 sys_common.h 中定义。