cancel
Showing results for 
Search instead for 
Did you mean: 

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.

PAngl.14
Associate II

/* 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();

}

1 ACCEPTED SOLUTION

Accepted Solutions

Use Connect Under Reset, or strap BOOT0 High​

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

View solution in original post

3 REPLIES 3
PAngl.14
Associate II

The error message is:

"Launching PowerSaveMode_CM7" has encountered a problem.

Error in initializing St-LINK device.

Reason (4) No device found on target.

Use Connect Under Reset, or strap BOOT0 High​

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

Thanks clive1

strap BOOT0 High​ worked!