cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U073CCT6 - True random-number generator (RNG) and STOP MODE

gilberto-falker
Associate III

Hi

 

I would like to check if it is necessary to call MX_RNG_Init() after the MCU exits STOP MODE to reconfigure the RNG?

 

BR

Gilberto

1 ACCEPTED SOLUTION

Accepted Solutions
Gyessine
ST Employee

Hello @gilberto-falker 
Stop mode achieves the lowest power consumption while retaining the content of SRAM and registers. All clocks in the VCORE domain are stopped, the PLL, the MSI RC, the HSI16 RC and the HSE crystal oscillators are disabled
and since The RNG runs on two different clocks which one of them is the AHB bus in the STM32U073
what really matters is that you call the  SystemClock_Config(); just after exiting stop mode.
you can also track the RNGEN bit in the RNG_CR register and the DRDY bit in the RNG_SR register
BR
Gyessine

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
Gyessine
ST Employee

Hello @gilberto-falker 
Stop mode achieves the lowest power consumption while retaining the content of SRAM and registers. All clocks in the VCORE domain are stopped, the PLL, the MSI RC, the HSI16 RC and the HSE crystal oscillators are disabled
and since The RNG runs on two different clocks which one of them is the AHB bus in the STM32U073
what really matters is that you call the  SystemClock_Config(); just after exiting stop mode.
you can also track the RNGEN bit in the RNG_CR register and the DRDY bit in the RNG_SR register
BR
Gyessine

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.