2020-02-21 04:21 PM
/* 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();
}
Solved! Go to Solution.
2020-02-21 04:50 PM
Use Connect Under Reset, or strap BOOT0 High
2020-02-21 04:26 PM
The error message is:
"Launching PowerSaveMode_CM7" has encountered a problem.
Error in initializing St-LINK device.
Reason (4) No device found on target.
2020-02-21 04:50 PM
Use Connect Under Reset, or strap BOOT0 High
2020-02-22 08:29 AM
Thanks clive1
strap BOOT0 High worked!