how works the CSS clock detection when he is enable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-03 11:10 AM
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-03 1:29 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-03 1:29 PM
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.
