2024-11-11 06:27 PM
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:
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:
Questions: