cancel
Showing results for 
Search instead for 
Did you mean: 

H7 Nucleo board: USB Charger Supply, MCU not starting

DHage.3
Associate

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

  1. bringing BOOT (on CN11) to 3.3V
  2. then plug in power USB cable
  3. release BOOT0 pin
  4. press reset button

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
...

3 REPLIES 3

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
DHage.3
Associate

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.