System supply configuration: set LDO Supply in STM32CubeIDE
Hello,
I have designed my own board with a STM32H7 MCU and set the "System supply configuration" to "1. LDO Supply selected" (see picture).
In the STM32CubeIDE in the IOC file under the item System Core - RCC the SupplySource is set to PWR_LDO_SUPPLY.
After that the STM32CubeIDE generates a code and at system start the device hangs at point:
/** Supply configuration update enable
*/
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
in an infinite loop, because the PWR_FLAG_ACTVOSRDY flag is apparently not set.
/* 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;
}
}
if I disable the function
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
the system works for now but as soon as I call the function "HAL_Delay" the system does not respond anymore.
How do I configure the system correctly?
Thanks and best regards Thomas
