When I program my device in debugging via JTAG/SWD with instances of low-power STOP mode within the code and disconnect Debugger, device never goes to sleep and get Ghost wake-up INTs. However, if I power cycle not pin reset device, every thing works.
Is there registers set by JTAG/SWD preventing sleep after programming.I also experience the same behavior after programming and reset within the STM32 ST-LINK Utility and not only within the IDE