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.

[参考译文] MSP430FR2355:OFIFG 标志永远不会在开发板上清除?

Guru**** 2516170 points
Other Parts Discussed in Thread: MSP430FR2355

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1116638/msp430fr2355-ofifg-flag-never-clearing-on-development-board

器件型号:MSP430FR2355

我使用 TI Resource Explorer 中的示例程序通过 DCO 运行8MHz MCLK ....我在 MSP430FR2355开发板上运行。  我的简单代码在 DO while 循环的前端挂起:

开发板上有一个晶体。  我的代码在下面的循环中挂起,我看到 XT1OFFG 被置位,我看到 OFIFG 被置位……如果我注释出它是有效的。  是否有人可以告诉我(除了删除循环之外)如何解决此问题?  

        do
        {
            CSCTL7 &= ~(XT1OFFG | DCOFFG);  //Clear XT1 and DCO fault flag
            SFRIFG1 &= ~OFIFG;
        } while (SFRIFG1 & OFIFG);                   // Test oscillator fault flag