@haroon.rehman, referring back to an older post by @mdma, try attaching an interrupt the pin you want to wake with. The STM32 will wake to any EXTI interrupt so give that a shot and let me know what happens.
1 Like