2025-04-22 12:34 AM - last edited on 2025-04-22 2:17 AM by mƎALLEm
Moved from this post.
Hello,
I'm currently working on the STM32H735G-DK dev board, using CubeIDE version 1.18.1 and integrated CubeMX version 6.14.1.202504091515, and this bug is still here. When I launch a debug, the firmware get stuck in the ExitRun0Mode function. After deleting the definition of USE_PWR_LDO_SUPPLY as you explained, everything works.
Regards,
2025-04-22 2:06 AM
Hello @mathieu1 and welcome to the ST community,
How you did generate the project? with CubeIDE or CubeMx?
I've generated the project with CubeMx 6.14.1 and only SMPS configuration is defined:
2025-04-22 5:19 AM - last edited on 2025-04-22 7:03 AM by mƎALLEm
Hello @mƎALLEm ,
Sorry you're right, I made a mistake about the define. But the bug is the same, the firmware when I debug it on the board, get stuck in the ExitRun0Mode() function. After removing it from the properties window, the firmware don't get stuck in the function anymore, but get stuck later in the HAL_PWREx_ConfigSupply() function during the SystemClock_Config here
/* Wait till voltage level flag is set */
while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
{
if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
{
return HAL_ERROR;
}
}
I made an empty project from the STM32 project board selector (STM32H735G-DK), and tried to debug it. Then I encounter the bug described in the pervious topic.
Thank you for your answer,
regards,
2025-04-22 6:58 AM
@mathieu1 wrote:
I made an empty project from the STM32 project board selector (STM32H735G-DK), and tried to debug it. Then I encounter the bug described in the pervious topic.
Thank you for your answer,
regards,
How you did start the project: from CubeMx or from CubeIDE?
2025-04-22 6:59 AM
From the CubeIDE
2025-04-22 7:02 AM
If you generate the code with the stand alone CubeMx (downloadable from here)? do you face the same behavior?
2025-04-22 7:46 AM
Even with CubeIDE v1.18.1 I was not to reproduce the behavior:
If you have an older version of CubeIDE uninstall it and install the latest version.
2025-04-22 8:14 AM
I am using the last version. But even with the last version, the firmware, when trying to debug it, get stuck in the function ExitRun0Mode() .
If I remove USE_PWR_DIRECT_SMPS_SUPPLY from the define symbols, when debugging again, the firmware don't get stuck in the function anymore, but get stuck later in the HAL_PWREx_ConfigSupply() function during the SystemClock_Config.