Other Parts Discussed in Thread: HALCOGEN
In the example file example_SafetyLib.c , there's this part of code in the main process flow:
/* USER CODE BEGIN (13) */ #if STC_ENABLE == 1 { SL_STC_Config stcSelfTestConfig; stcSelfTestConfig.stcClockDiv = 2; /* STC Clock divider = 1 */ stcSelfTestConfig.intervalCount = 1; /* One interval only */ stcSelfTestConfig.restartInterval0 = TRUE; /* Start from interval 0 */ stcSelfTestConfig.timeoutCounter = 0xFFFFFFFF; /* Timeout counter*/ SL_SelfTest_STC(STC1_COMPARE_SELFCHECK, TRUE, &stcSelfTestConfig); while(1); /* STC failed to start */ } #endif /* USER CODE END */
The while(1) will be reached and spin forever when the code reaches this point, without a test point up front that makes this happen.
Am I missing something?