Incorrect STM32L4P5xx and STM32L4Q5xx RNG Initialisation in Low Level API #14
Labels
bug
Something isn't working
hal
HAL-LL driver-related issue or pull-request.
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
question
Further information is requested
st community
Also reported by users on the community.st.com
In a post here https://community.st.com/t5/stm32-mcus-security/why-am-i-getting-an-rng-failure-on-the-stm32l4p5/m-p/203250. It was recognised that the HAL was initialising the RNG peripheral incorrectly.
The HAL function
HAL_RNG_Init
seems to have been corrected to set the correct CONFIG[1,2,3] and HTCR.However the LL version of this function doesn't include any of this, so the CONFIG[1,2,3] and HTCR will all contain the wrong values when using this function.
https://github.com/STMicroelectronics/stm32l4xx_hal_driver/blob/eb4b2d2abad64c85000fb883a9fb86ab9fa07a91/Src/stm32l4xx_ll_rng.c#L118-L135
Could this function be updated to set the correct values, as described in Table 225. RNG configurations
of RM0432?
The text was updated successfully, but these errors were encountered: