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.

[参考译文] CCS/MSP430FR5994:警告/错误:宏和声明的重新定义不兼容-在 MSP430FR5994上使用 MSP430FR5969代码

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/605292/ccs-msp430fr5994-warnings-errors-incompatible-redefinition-of-macro-and-declarations---using-msp430fr5969-code-on-msp430fr5994

器件型号:MSP430FR5994
主题中讨论的其他器件: MSP430FR5969

工具/软件:Code Composer Studio

您好!

我正在尝试在 MSP430FR5994上为 MSP430FR5969编写代码。 我已经更改了构建设置:

但是每次我尝试构建代码时、我都会收到以下警告和错误:

项目已附加。
e2e.ti.com/.../FreeModbus.rar

要在 MSP430FR5994上运行此代码、我必须怎么做?

谢谢、

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

    您能否为 FR5994创建新项目并仅复制代码?

    这应该更好。

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

    感谢您的回答。

    问题是显式"#include" 子文件夹标题中的"声明。

    此致、
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我知道。
    但是、我建议启动一个新项目并复制代码。

    此致
    Lukas