cancel
Showing results for 
Search instead for 
Did you mean: 

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

AGula.1
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

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

View solution in original post

1 REPLY 1
Ghofrane GSOURI
ST Employee

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