STM32U585 Cannot switch between SMPS and LDO power supplies
I am using the B-U585I-IOT02A discovery kit with the STM32U585AI chip.
Using code generated by STM Cube.
Attempting to configure use of the SMPS power supply results in a timeout in the HAL_PWREx_ConfigSupply() function.
In the sequence below, smps_mode remains the same after each function call. The HAL_PWREx_ConfigSupply(PWR_SMPS_SUPPLY); call returns a timeout.
Why? I should be able to switch back and forth between LDO and SMPS, and the dev kit seems to have the proper hardware to support SMPS.
STM32CubeIDE Version: 1.12.0 Build: 14980_20230301_1550 (UTC)
uint32_t smps_mode = HAL_PWREx_GetSupplyConfig();
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
smps_mode = HAL_PWREx_GetSupplyConfig();
HAL_PWREx_ConfigSupply(PWR_SMPS_SUPPLY);
smps_mode = HAL_PWREx_GetSupplyConfig();