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/MSP430F149:IAR Workbench至CCS C代码迁移-编译错误

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/663205/ccs-msp430f149-iar-workbench-to-ccs-migration-of-c-codes---compilation-errors

部件号:MSP430F149

工具/软件:Code Composer Studio

我最近尝试使用  IAR Workbench将MSP430的代码编译 为CCS。  msp430x14x.h上虚线后面的以下部分似乎会引起编译和抛出错误的麻烦  

#35 #ERROR指令:仅用于ICC430/A430的MSP430X44X.H文件  

===================================================================================

#IF (((__TID__>> 8)& 0x7F)!= 0x2b)/* 0x2b =43 dec*/

错误MSP430X44X.H文件,仅用于ICC430/A430
#endif

#ifdef __IAR_SYSTEMS _ICC__
#include <in430.h>
#pragma language=extended

#define DEFC (name,address)__no_init volatile unsigned char name @ address;
#define DEFW (name,address)__no_init volatile unsigned short name @ address;

#endif /*__IAR_SYSTEMS ICC__*/


#ifdef __IAR_SYSTEMS _ASM__
#define DEFC (名称,地址) sfrb name = address;
#define DEFW(name, address) sfrw name = address;

#endif /*__IAR_SYSTEMS _ASM__*/

#ifdef __cplusplus
#define read_only
#否则
#define read_only const
#endif

请帮帮我。

Rgds,

Arvind

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

    请参阅《CCS for MSP430用户指南》,因为其中有一节介绍CCS和IAR之间的代码移植。 (http://www.ti.com/lit/slau157 )
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢,我已将移植从IAR工作台下载到CCS。 我将查看文档并发布我的发现。