Skip to main content
NAham.1
Associate II
March 3, 2023
Question

How to retrieve STm32H757 MCU from SMPS power mode?

  • March 3, 2023
  • 3 replies
  • 920 views

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!

  

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    March 3, 2023

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

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

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

    My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
    NAham.1
    NAham.1Author
    Associate II
    March 3, 2023

    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!