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.

MSP430F5438A: MSP430 low power consumption

Part Number: MSP430F5438A
Hi  team,
A customer have a query on the MSP430 low power consumption.
The circuit customer used is the minimum system of 5438A directly.
XT1 is connected with 32768 crystal oscillator, XT2 is connected with 16M crystal oscillator.

In IPM3 mode, the power consumption is still more than 400 uA

The 16M crystal oscillator did not stop oscillation,

Please find my program below.
Can you help me troubleshoot it?
what is the reason?
----------------------------------------------
void main( void )
{
  
 WDTCTL = WDTPW+WDTHOLD;                   // Stop WDT
 P5SEL |= BIT2 + BIT3;                   //P5.2 and P5.3 are selected for Crystal oscillator XT2 input
 P7SEL |= 0x03; 
 UCSCTL6 &= ~(XT1OFF + XT2OFF);       
 UCSCTL6 |= XCAP_3; 
  UCSCTL6 &= ~(XT1DRIVE_3); 
  UCSCTL6 &= ~(XT2DRIVE_2);
    
    
  do                                      // Loop until XT1,XT2 & DCO stabilizes
  {
    UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + XT1HFOFFG + DCOFFG);
    SFRIFG1 &= ~OFIFG;                    // Clear oscillator failure flag
                                          // Delay, waiting for XT2 to start oscillation
  } while (SFRIFG1 & OFIFG);              // Judge whether XT2 starts oscillation,
  
  
    UCSCTL4 |= SELA__XT1CLK + SELS__XT2CLK + SELM__XT2CLK; 
    P1OUT = 0x00;
     P2OUT = 0x00;
      P3OUT = 0x00;
       P4OUT = 0x00;
        P5OUT = 0x00;
         P6OUT = 0x00;
          P7OUT = 0x00;
           P8OUT = 0x00;
            P9OUT = 0x00;
             P10OUT = 0x00;
              P11OUT = 0x00;
              PJOUT = 0x00;
              P1DIR = 0xFF;
              P2DIR = 0xFF;
              P3DIR = 0xFF;
              P4DIR = 0xFF;
              P5DIR = 0xFF;
              P6DIR = 0xFF;
              P7DIR = 0xFF;
              P8DIR = 0xFF;
              P9DIR = 0xFF;
              P10DIR = 0xFF;
              P11DIR = 0xFF;
               PJDIR = 0xFF;
               __bis_SR_register(LPM3_bits);  
               __no_operation();  
}
------------------------------------------------------------------------------------------
Thanks.

**Attention** This is a public forum