Tool/software: Code Composer Studio
I am trying to compile the code written for MSP430 using IAR Workbench to CCS recently. The following section after dotted lines on msp430x14x.h seems troubling the compilation and throwing error
#35 #error directive: MSP430X44X.H file for use with ICC430/A430 only
===============================================
#if (((__TID__ >> 8) & 0x7F) != 0x2b) /* 0x2b = 43 dec */
#error MSP430X44X.H file for use with ICC430/A430 only
#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(name, address) sfrb name = address;
#define DEFW(name, address) sfrw name = address;
#endif /* __IAR_SYSTEMS_ASM__*/
#ifdef __cplusplus
#define READ_ONLY
#else
#define READ_ONLY const
#endif
Would you please help me.
Rgds,
Arvind