STM32F207 RNG
Hello,
I'm having trouble using the RNG peripheral on the STM32F207.
I'm using the HAL functions to set things up and I keep getting back the same number. I've made sure to enable the RNG Clock. See the steps below:
- Enabled RNG CLK:
__RNG_CLK_ENABLE()- Enabled the peripheral:
__HAL_RNG_ENABLE()- Get the random number when available (polling on the ready flag):
HAL_RNG_GetRandomNumber()The polling doesn't time out, it just keeps returning the same number. I've tried to enable the interrupt as well and the interrupt never arrives.
What am I doing wrong?
Thank you
