Solved
Wakeup from standby falling edge
Hello, i'm working with stm32l412cb on custom PCB, and I ran into trouble.
Is there any way to wake up MCU from standby by falling edge?
Here is scheme and code:


void enter_sleep() {
HAL_EnableDBGStandbyMode();
//HAL_GPIO_WritePin(GPIOC, GPIO_PIN_13, GPIO_PIN_SET);
HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_C, GPIO_PIN_13);
HAL_PWREx_EnablePullUpPullDownConfig();
/* Disable all used wakeup sources: PWR_WAKEUP_PIN2 */
HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN2);
/* Clear all related wakeup flags*/
__HAL_PWR_CLEAR_FLAG(PWR_FLAG_WUF2);
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2_LOW);
// HAL_PWR_EnableWakeUpPin();
HAL_PWR_EnterSTANDBYMode();
}