Skip to main content
AGula.1
Visitor II
May 12, 2023
Solved

STM32CubeMx doesn't appear to be setting CSSON bit for STM32U5

  • May 12, 2023
  • 1 reply
  • 886 views

I'm configuring an STM32U575 within the STM32CubeMx tool where the HSE clock is being used. I'm trying to enable the CSS for the HSE clock via the Clock Configuration menu, however enabling/disabling the CSS via this tool doesn't seem to actually set the RCC->CSSON bit. I can configure this CSSON bit manually, but just wanted to check before doing so.

This topic has been closed for replies.
Best answer by Ghofrane GSOURI

Hello @AGula.1​ 

First let me thank you for posting.

Please follow those steps to set RCC->CSSON bit correctly using CubeMX 6.8.1

1- Make sure that you choose HSE : Crystal /Ceramic Resonator


_legacyfs_online_stmicro_images_0693W00000bk6EdQAI.png2- under [Clock configuration] choose HSE as an input for System clock MUX then click on CSS enable
_legacyfs_online_stmicro_images_0693W00000bk6AJQAY.png3- generate and debug the code


_legacyfs_online_stmicro_images_0693W00000bk6GtQAI.png 

BR,

Ghofrane

1 reply

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
May 15, 2023

Hello @AGula.1​ 

First let me thank you for posting.

Please follow those steps to set RCC->CSSON bit correctly using CubeMX 6.8.1

1- Make sure that you choose HSE : Crystal /Ceramic Resonator


_legacyfs_online_stmicro_images_0693W00000bk6EdQAI.png2- under [Clock configuration] choose HSE as an input for System clock MUX then click on CSS enable
_legacyfs_online_stmicro_images_0693W00000bk6AJQAY.png3- generate and debug the code


_legacyfs_online_stmicro_images_0693W00000bk6GtQAI.png 

BR,

Ghofrane

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.