cancel
Showing results for 
Search instead for 
Did you mean: 

how works the CSS clock detection when he is enable?

GOnkelinx
Associate II

Hi,

We had enable the Clock secure system in out project.
How works this?
When the source clock fails what we must doing in the call-back HAL_RCC_CSSCallback()?

regards

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
STTwo-32
ST Employee

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 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.