STM32L4xx:HAL_RCCEx_PeriphCLKConfig, PLL clock source and divider M already set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-17 4:50 AM - edited ‎2023-10-18 12:03 AM
I am getting error in auto generated code. While doing Init for RNG peripheral at very first time just after flash it's going in error loop and later upon reset, it is working fine. This behaviour I observed in debugging mode.
What is the issue can you help?
- Labels:
-
STM32L4 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-17 5:45 AM
What board is this? How is that function being called--what clock changes are being made? Doesn't appear to be RNG related.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-17 7:17 AM
Hello @Abhi_Data
Make sure that the RCC clock configuration settings are correct for your specific microcontroller and application.
Are you using external clock source? It would be helpful to provide MX configuration file (*.IOC)
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-17 8:18 AM
The posted/highlighted code is not in HAL_RCCEx_PeriphCLKConfig, but in RCCEx_PLLSAI1_Config().
What is content PllSai1 and how is the PLL source set (i.e. what is content of RCC->PLLCFGR) at that moment?
Tell us more about your intended application and hardware.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-18 12:08 AM
can you please review newly added attachments?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-18 12:09 AM
This is code is auto generated while I enabled RNG peripheral
Added image of IOC file
please look again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-18 12:11 AM
It's simple RNG application for the flash to test.
While doing inti for RNG ?it's going in error loop for very first time and after reset once it works fine
added Ioc image
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-18 3:20 AM
Hi again @Abhi_Data
Could you confirm the same issue using different clock source or decreasing clock frequency? According to the reference manual, RNG Clock source CLK48SEL is used to select 48MHz Clock. Are you sure about the MSI clock configuration being used?
You can try this example for reference: STM32Cube\Repository\STM32Cube_FW_L4_V1.18.0\Projects\NUCLEO-L4P5ZG\Examples\RNG\RNG_Config
Note that you didn't provide further details about the product being used ...
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.
