I have just tried your code and it works.
I measure input current to see if the MCU wakes up.
After wake-up, the MCU goes to interrupt vector 6, Vd2di_ext.
Could you introduce your method to enter the STOP mode and wake up?
When I test the "STOP" mode, the MCU just like running as reset after I pressed the button to wake up the device . The device always stay in low-power mode finally!
I will appreciate it if you could help me!