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.

Error when Using Bit-fields in MSP430F5310 or MSP430F5510

Other Parts Discussed in Thread: MSP430F5324, MSP430F5310

Dear all,

    When I use bit-fields in MSP430F5301-MSP430F5310, MSP4305501-MSP430F5510, the compiler will give error. The error is as following.

"Fatal Error[e72]: Segment DATA20_Z must be defined in a segment definition option (-Z, -b or -P) ".

  My compiler  is IAR for MSP430 V5.30. But to be stranged, when choose other MCUs ,for examples MSP430F5324 or MSP4305438, the will be no error.

 The "Data model" is selected "Large".

  Just like the the  following test project, the compiler will give error

typedef struct {
MUINT16 i:1;
MUINT16 j:1;
MUINT16 k:1;
MUINT16 l:1;
MUINT16 m:1;
MUINT16 n:1;
MUINT16 iiii :10;

}tSchedule;

void main(void)

{

    tSchedule tmp;

   tmp.i =0;

}

Any comments will be appreciated

**Attention** This is a public forum