2022-11-06 08:59 AM
I have a Nucleo-H745ZI-Q board and developed an application with STM32CubeIDE and programmed the board via USB ST-Link connector, everything fine.
Next I wanted to use my board without USB-PC connection, instead, simply by powering it with USB-Charger (same connector as during development process). I changed the JP2 to CHGR and the power led is on, but the MCU does not execute the program. I figured out, that
Starts the flashed MCU program.
Is there any way to directly start the developed program after power up without these steps?
Edit on 11.11.2022:
I found my mistake:
void SystemClock_Config(void)
{
...
//HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY); //wrong
HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY); //correct
while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} //was missing
...
2022-11-06 09:03 AM
Well there's apt to be a solder bridge to disconnect the NRST
Check FW version on the ST-LINK
Sounds like perhaps an issue with the LDO/SMPS settings in your code, or something waiting for one of the cores. Check the current Option Byte settings in STM32 Cube Programmer
2022-11-06 11:55 AM
FW: V3J10M3
I suspected a hardware problem, but I have to say switching back to a nucleo example project everything works as suspected. No changes on hardware side or Option Bytes.
Should be possible to locate the issue now ... I will report back in a few day.
2022-11-06 01:01 PM