Skip to main content
PAngl.14
Associate II
February 22, 2020
Solved

Did I brick my board? I'm trying to understand low power mode, and ran the code below and now can't connect to st link.

  • February 22, 2020
  • 3 replies
  • 813 views

/* USER CODE BEGIN 2 */

HAL_PWR_EnableWakeUpPin (PWR_WAKEUP_PIN1);

gotoSleep();

 /* USER CODE END 2 */

/ * @brief void gotoSleep(void)

 * * @retval None

 */

void gotoSleep(void)

{

    HAL_Delay(1000);

    HAL_PWR_EnterSTANDBYMode();

    SystemClock_Config();

}

This topic has been closed for replies.
Best answer by Tesla DeLorean

Use Connect Under Reset, or strap BOOT0 High​

3 replies

PAngl.14
PAngl.14Author
Associate II
February 22, 2020

The error message is:

"Launching PowerSaveMode_CM7" has encountered a problem.

Error in initializing St-LINK device.

Reason (4) No device found on target.

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
February 22, 2020

Use Connect Under Reset, or strap BOOT0 High​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PAngl.14
PAngl.14Author
Associate II
February 22, 2020

Thanks clive1

strap BOOT0 High​ worked!