2024-10-01 06:12 AM
Hi,
I have an STM32H723ZGT which I am having problems with hanging at boot.
When debugging, it is stuck at
/* Wait till LSE is ready */
while(LL_RCC_LSE_IsReady() != 1)
{
}
Solved! Go to Solution.
2024-10-01 06:17 AM
Why is your code waiting for LSE if it's disabled?
If this is unmodified from an IOC file, please include that IOC file. Otherwise include your main.c file or relevant code. It sounds like when you switched from LSE to LSI you didn't take out some parts of the code that should have been taken out.
2024-10-01 06:17 AM
Why is your code waiting for LSE if it's disabled?
If this is unmodified from an IOC file, please include that IOC file. Otherwise include your main.c file or relevant code. It sounds like when you switched from LSE to LSI you didn't take out some parts of the code that should have been taken out.
2024-10-01 06:34 AM
That is a good point.
I thought the clock config function
/* Configure the system clock */
SystemClock_Config();
had been auto generated by the clock config tool in the IOC viewer.
Removing all references to LSE in this function seems to fix the issue at this stage.
2024-10-01 06:38 AM
@deanCI wrote:I thought the clock config function ... had been auto generated by the clock config tool in the IOC viewer.
Yes, it should be.
2024-10-01 06:40 AM
Are you implying it doesn't get auto generated in some instances?
2024-10-01 06:53 AM
After changing the IOC, you have to tell it to re-generate - that's how the IOC changes get fed into the C code.
2024-10-01 07:14 AM
I have been generating the code from the IOC, and also tried cleaning the project before but the references to LSE were still in that function. As if generating code from the IOC hadn't modified the function.
2024-10-01 07:42 AM - edited 2024-10-01 07:42 AM
If you include your IOC we can check it out. Otherwise it's hard to verify and debug.
Most likely situation is the code hasn't been regenerated and recompiled.