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.

MSP430FR6877: MSP430F437IPN to MSP430FR6877 ISR porting difficulty

Part Number: MSP430FR6877

Hello,
I am currently looking in to porting some code operating on an MSP430F437IPN device to a device working with an MSP430FR6877. The majority of the other code has been altered to work on the system with no issues but I am having some trouble within the interrupt service routine.

 

In the original system the following is used

BIC.B #WDTIE, &IE1 ; Disable WDTI

 ; Output a pulse or check if inter-
 ; pulse timeout is done.

 PUSH R12 
 PUSH R13
 PUSH R14
 PUSH R15
 CALL #Pulse_Output1
 POP R15
 POP R14
 POP R13
 POP R12

 BIS.B #WDTIE, &IE1 ; Enable WDTI
 RETI

 

However when converting over based on the SFR in the new MCU with the following:

 

BIC.B #WDTIE, &SFRIE1 ; Disable WDTI

 ; Output a pulse or check if inter-
 ; pulse timeout is done.

 PUSH R12 
 PUSH R13
 PUSH R14
 PUSH R15
 CALL #Pulse_Output1
 POP R15
 POP R14
 POP R13
 POP R12

 BIS.B #WDTIE, &SFRIE1 ; Enable WDTI
 RETI

 

I get Error[431]: Accessing SFR using incorrect size

on the lines containing BIC.B #WDTIE, &SFRIE1 ; Disable WDTI and  BIS.B #WDTIE, &SFRIE1 ; Enable WDTI

Would you happen to know what is going wrong?

**Attention** This is a public forum