Skip to main content
This topic has been closed for replies.
Best answer by STTwo-32

Hello @GOnkelinx and welcome to the ST Community :smiling_face_with_smiling_eyes:.

According to the RM0444 part 5.2.9, if the CSS is enabled and a HSE failure is detected:

  • The HSE is automatically disabled and the system clock switch automatically to HSI.
  • A clock failure event is sent to the break input of TIM1, TIM15, TIM16 and TIM17 timer.
  • CSSI (clock security system interrupt) is generated.

For the HAL_RCC_CSSCallback(), you need to write the instructions you want to execute in response to the event.

Best Regards.

STTwo-32 

 

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
December 3, 2023

Hello @GOnkelinx and welcome to the ST Community :smiling_face_with_smiling_eyes:.

According to the RM0444 part 5.2.9, if the CSS is enabled and a HSE failure is detected:

  • The HSE is automatically disabled and the system clock switch automatically to HSI.
  • A clock failure event is sent to the break input of TIM1, TIM15, TIM16 and TIM17 timer.
  • CSSI (clock security system interrupt) is generated.

For the HAL_RCC_CSSCallback(), you need to write the instructions you want to execute in response to the event.

Best Regards.

STTwo-32