stm32l4xx_hal_driver icon indicating copy to clipboard operation
stm32l4xx_hal_driver copied to clipboard

Provides the STM32Cube MCU Component "hal_driver" of the STM32L4 series.

Results 2 stm32l4xx_hal_driver issues
Sort by recently updated
recently updated
newest added

Incorrect STM32L4P5xx and STM32L4Q5xx RNG Initialisation in Low Level API

[{"_id":"684b140266394a305a04fbf5","body":"Another suggestion, it would be useful if `LL_RNG_SetHealthconfiguration` and `LL_RNG_GetHealthconfiguration` was modified to write the magic bytes `0x17590ABC` to unlock the HTCR register before reading \/ writing as specified in RM0432\r\n\r\nhttps:\/\/github.com\/STMicroelectronics\/stm32l4xx_hal_driver\/blob\/eb4b2d2abad64c85000fb883a9fb86ab9fa07a91\/Inc\/stm32l4xx_ll_rng.h#L661-L675\r\n\r\nCurrently the write function will have no effect if the user just calls it with the value they want in the HTCR e.g.\r\n\r\n```c\r\nLL_RNG_SetHealthconfiguration(0x00007274);\r\n```","issue_id":1716692062915,"origin_id":1893928608,"user_origin_id":9109015,"create_time":1705417402,"update_time":1705417752,"id":1749750786889,"updated_at":"2025-06-12T17:53:06.888000Z","created_at":"2025-06-12T17:53:06.888000Z"},{"_id":"684b140266394a305a04fbf6","body":"Hello @badcf00d,\r\n\r\nThank you for your contribution. Your report will be forwarded to our development team for analysis.\r\nWe will get back to you as soon as we have an answer.\r\n\r\nAs a first answer, it's Cleary mentioned in Reference manual to unlock the HCR register before reading or writing in the register in this case you can call the function `LL_RNG_SetHealthconfiguration` two times firstly write the magic bytes **0x17590ABC** to unlock the HTCR register and then you can read or write this register.\r\n\r\nThanks in advance for your patience and understanding.\r\n\r\nWith Regards,","issue_id":1716692062915,"origin_id":1900773810,"user_origin_id":113367897,"create_time":1705683802,"update_time":1705683802,"id":1749750786897,"updated_at":"2025-06-12T17:53:06.897000Z","created_at":"2025-06-12T17:53:06.897000Z"},{"_id":"684b140266394a305a04fbf7","body":"ST Internal Reference: 173093","issue_id":1716692062915,"origin_id":1936003041,"user_origin_id":113367897,"create_time":1707487954,"update_time":1707487954,"id":1749750786903,"updated_at":"2025-06-12T17:53:06.902000Z","created_at":"2025-06-12T17:53:06.902000Z"}] comment

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...

bug
hal
internal bug tracker
st community
rng

**Describe the set-up** * Custom board * IAR 9.50.2 * stm32l4xx_hal_driver in v1.13.4 and v1.13.5 **Describe the bug** Commit 0844cb8 introduces a check in `I2C_WaitOnFlagUntilTimeout` which in turn breaks timeout/wait...

bug
hal
internal bug tracker
i2c
spotted before customer