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.
When I run the clock monitor test, the Clock Fail status register is never set so my test waits infinite at the while((systemREG1->GBLSTAT & 0x1U) == 0U). The PLL Slip test works fine. What can I check to determine and resolve what is going on?
/* Enable clock monitor range detection circuitry */ systemREG1->CLKTEST |= 0x03000000U; /* Backup register GHVSRC */ ghvsrc_bk = systemREG1->GHVSRC; /* Switch all clock domains to HF LPO */ systemREG1->GHVSRC = 0x05050005U; /* Disable oscillator to cause a oscillator fail */ systemREG1->CSDISSET = 0x1U; /* Wait till oscillator fail flag is set */ /*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */ while((systemREG1->GBLSTAT & 0x1U) == 0U) { } /* Wait */ if((esmREG->SR1[0U] & 0x800U) != 0x800U) { selftestFailNotification(CHECKCLOCKMONITOR_FAIL1); }