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.

XT1 Failure issue on MSP430FR4133

Other Parts Discussed in Thread: MSP430FR4133

Hi,

XT1 Failure issue is found on customer side, and I reproduced on lab.

 I test code exmaple msp430fr413x_CS_04.c on MSP430FR4133 Launchpad.

  1. If only power on Launchpad and not connect to IAR, everything runs well.
  2. If only download the code, sometime code will run to while loop at the beginning, because XT1OFFG =1& XT1BYPASS=1, if both clean the two register by hand in IAR, then code runs well, LED toggling. If not ,  will stop there.
  3. More important is here,  If I randomly run and stop by hand,  it will randomly run into the ISR and LED Keep on.  Check register, XT1OFFG =1& XT1BYPASS=1.  But the state will not keep, after several time run and stop, it will turn back to right state.

Please help check and  reproduce on your lab, thanks!

Vivian Zhang

  • Hi Vivian,

    As you described, this issue only happens in debug mode. I think this issue is related to IAR but not hardware.
    I did meet some similar issue with old version IAR since its header file was not the latest version.
    Please try to use the latest version CCS or IAR.

    BTW, there are some issue about msp430fr413x_CS_04.c. You can try following code to fix the issue.

    while(CSCTL7 & (FLLUNLOCK0 | FLLUNLOCK1)); // Poll until FLL is locked
    do
    {
    CSCTL7 &= ~(DCOFFG); // Clear DCO fault flag after FLL is locked
    SFRIFG1 &= ~OFIFG;
    }while (SFRIFG1 & OFIFG); // Test oscillator fault flag
    CSCTL4 = SELMS__DCOCLKDIV | SELA__XT1CLK; // set ACLK = XT1CLK = 32768Hz

    We will update this code example later.

    Best Regards,
    Darren Lu

**Attention** This is a public forum