CubeMx is missing the PWR_DIRECT_SMPS_SUPPLY option under RCC->SupplySource
When I generate a new project in CubeMx 5.3.0 for the STM32H745I-DISCO board for IAR toolchain, I get the following code:
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
The example projects in CubeH7 package use this code instead:
HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY);
With the code generated by CubeMx, when I unplug the USB cable (which supplies power to the board) from the STLK port, plugging it back in causes the code not to run.
With the code from the examples, the code runs ok.
I believe the code generated by CubeMx misconfigures the FW for the STM32H745I-DISCO board.
Anyone else have this issue?

