cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 MCU ST SelfTest Error(STL_MainClockTest)

MW_JANG
Visitor

We are currently using the ST32F4 MCU.
During operation, we are using self-diagnostic code provided by ST, but after 8 days of normal operation, an EXT_SOURCE_FAIL occurs in STL_MainClockTest(), causing the MCU to reset.

When EXT_SOURCE_FAIL does not occur, the PeriodValue is measured between 11,500 and 11,800. However, when the error occurs, the PeriodValue is around 23,000, approximately twice the normal value.

The function for calculating the Period Value is as follows:

 

MW_JANG_2-1731378154897.png

HSE is operating at 25MHz, and LSI is operating at 32kHz.
We are using TIM5's Ch4 for INPUT Capture, and the detailed settings for INPUT Capture are as follows:

 

MW_JANG_4-1731378259914.png

  • Questions:

    1. We are currently using tim_input_config.ICPrescaler with TIM_ICPSC_DIV4. Is it acceptable to change it to TIM_ICPSC_DIV8?
    2. What is the difference between TIM_ICPSC_DIV4 and TIM_ICPSC_DIV8?
    3. What is the meaning of the ICFilter value, and could changing it prevent errors?

 

0 REPLIES 0