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.

MSP430FR6989: #20: identifier "__SFR_FARPTR" is undefined

Part Number: MSP430FR6989

I am using Code Composer Studio V8.3.1

I build the project successfully for last 5 Year with this CCS V8.3.1

I move the project to other computer. When I build the project: the following are shown:

../Misc.c", line 1: error #171: expected a declaration
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 71: warning #12-D: parsing restarts here after previous syntax error
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 1942: error #20: identifier "__SFR_FARPTR" is undefined
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 1945: error #20: identifier "__SFR_FARPTR" is undefined
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 1953: error #20: identifier "__SFR_FARPTR" is undefined
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 1956: error #20: identifier "__SFR_FARPTR" is undefined
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 1964: error #20: identifier "__SFR_FARPTR" is undefined
"C:/ti/ccsv8/ccs_base/msp430/include/msp430fr6989.h", line 1967: error #20: identifier "__SFR_FARPTR" is undefined
7 errors detected in the compilation of "../Misc.c".

These are found inside the include file #include <msp430fr6989.h>

Please help

  • ../Misc.c", line 1: error #171: expected a declaration

    The first error reported is in Misc.c at line 1.

    What is the contents of Misc.c line 1?

    The first error at Misc.c line 1 might be causing the further errors in msp430fr6989.h

    Looking at the msp430fr6989.h from a CCS v8.3.0 installation shows __SFR_FARPTR is defined as a valid typedef for a function pointer, used to define DMA addresses as 20-bits.

**Attention** This is a public forum