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.

MSPM0G3507: LFXT cannot implement program switching

Part Number: MSPM0G3507

Hi team,

Use the latest version of the G3507 monolithic machine.

Purpose: After the LFCLK clock source LFXT has been de-asserted, have the MCU reset switch to LFOSC, and then switch to LFXT after the LFXT returns to normal. Some of the code are as below: 

Test LFXT failed to enter good interrupt after good started, it did not enter NMI interrupt test (turned on) when LFXT failed, but MCU reset (why after LFXT failed, Reset without interrupt?) .

How to switch to LFOSC after LFXT failure (reset only once is also OK? And how can the LFXT switch back normally when it returns to normal? Is there any scheme and routine code available? 

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    According to the TRM, "To switch the LFCLK tree to use LFXT as the 32 kHz clock source rather than LFOSC, set the SETUSELFXT bit in the LFXTCTL register and SYSCTL will permanently switch the LFCLK source to LFXT. Once LFCLK is switched to LFXT, it is not possible to switch it back to LFOSC other than by executing a BOOTRST."

    A reset is needed to change back to the LFXT as the source of LFCLK.

    Best regards,

    Cash Hao

  • Hi Cash,

    Thank you for the support.

    Could you help share the specific codes? How to toggle after failed and how to switch back after normal? 

    Thanks and regards,

    Cherry

  • Hi Cash,

    Would it be possible to share the code and could you help take a look at the latest response?

    Thanks and regards,

    Cherry

  • Hi Cherry,

    Just get back to office. Sorry for the late response. 

    Customer can call the DL_SYSCTL_setLFCLKSourceLFXT() function to set the LFXT as the LFCLK clock source. And if the LFXT failed to source the LFCLK. A BOR is needed to reset the LFCLK configuration. And the MCU will use the LFOSC as the LFCLK clock source by default. Do not set the LFXT again. 

    Best regards,

    Cash Hao