2023-07-24 11:53 PM
Used STM32CubeIDE version: 1.12.0
Used driver library: STM32Cube_FW_U5_V1.2.0
I found a bug in the initialization of the LSI, when low-level drivers are used. The bug is located in the function SystemClock_Config(). Since the background domain access is not enabled before trying to enable the LSI, the loop which is waiting for the LSI to come up is never left.
...
LL_PWR_EnableBkUpAccess(); // <-- this line is missing in the generated code
LL_RCC_LSI_Enable();
/* Wait till LSI is ready */
while(LL_RCC_LSI_IsReady() != 1)
{
}
...
Solved! Go to Solution.
2023-07-26 1:43 AM - edited 2023-07-26 1:44 AM
Hello @SOfne.1
First let me thank you for posting.
Actually I tried to reproduce the issue mentioned above using STM32U575,CubeMX 6.9.0 and STM32CubeIDE 1.13.0 and this is what I got please have a look
"LL_PWR_EnableBkUpAccess()" does exist in the generated code.
Thx
Ghofrane
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.
2023-07-26 1:43 AM - edited 2023-07-26 1:44 AM
Hello @SOfne.1
First let me thank you for posting.
Actually I tried to reproduce the issue mentioned above using STM32U575,CubeMX 6.9.0 and STM32CubeIDE 1.13.0 and this is what I got please have a look
"LL_PWR_EnableBkUpAccess()" does exist in the generated code.
Thx
Ghofrane
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.
2023-07-26 1:56 AM
Hi Ghofrane,
the code you generated is OK.
Seems that the bug has already been fixed with STMCubeIDE 1.13.0.
(I currently use v1.12.0)
Thanks
Sebastian