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.

[参考译文] 在代码/预编译器中获取 C2000Ware 版本

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1227576/obtain-c2000ware-version-in-code-precompiler

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

您好!

1) 1)如何在代码中维护 C2000Ware 版本?

就像:

#ifdef __TI_Compiler_version__
  #if _TI_Compiler_version__!= 22006000
    错误编译器版本错误
  #endif
#else
  错误编译器版本错误
#endif

2) 2)如何在 CCS 的"Console"窗口(下面的 XXXXXX)中"打印"上述版本?

#错误下载正确的编译器版本,您使用的是 XXXXXXX 而不是22006000(22.6.0)

3)在哪里可以找到此类信息? 搜索谷歌2小时不适合我。

Br、

Ruud

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

    对于 C2000Ware 4.2、例如...

    #include "version.h"
    
    #if VERSION_NUMBER != 4002000U
    
    #error Wrong C2000Ware version is selected in CCS General -> Products!
    
    #endif

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

    尊敬的 Ruud:

    你可以按照 Kier 建议的方式来做。

    此致

    Siddharth