cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve STm32H757 MCU from SMPS power mode?

NAham.1
Associate II

I am using STM32H757 MCU on my custom board and was able to flash the code.

Once mistakenly I flashed without commenting the below lines in SystemClock_Config function

 HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY);

__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE2);

while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}

Till then I am unable to detect the MCU using ST debugger.

Tried with STM Utility & STM32CubeProgrammer to detect & flash

Tried various options like -

  1. Connect Under reset,
  2. PowerOn PCB and Click Connect at the same time

Nothing helps!

Any idea to overcome this issue

Thanks in Advance!

  

3 REPLIES 3

Strap BOOT0 HIGH cycle.power completely several times until.you can connect, then erase user code.​

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

Set BOOT0 pin to 1, which will start the MCU in bootloader mode - then you may connect to it.

NAham.1
Associate II

Thank you for your immediate response

Just I tried by resetting the device and flashing using ULINK tool and able to flash the code

Thank you once again!