If the user attempts to enter either stop1 or stop2 with ENBDM set, the MCU will instead enter stop3.
As RM says. I can't actually enter stop2 when debug. Any suggestion?
Yes this is correct if you have enable the BDM you only can enter to stop 3, you are not able to enter to stop 2 or 1 with the debugger enable.
Retrieving data ...