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 reported into a ticket in the internal bug tracking system
question
Further information is requested
st community
Also reported by users on the community.st.com
Projects
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.
stm32l4xx_hal_driver/Src/stm32l4xx_ll_rng.c
Lines 118 to 135 in eb4b2d2
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: