If the device is in Debug Interface mode, Force-OFF mode will be emulated to secure the required resources needed for debugging.
When Force-OFF mode is emulated, the CPU and all peripherals are reset. The CPU is prevented from running during debug access to a core's resources, including writing to RAM, flash, and/or peripherals. See Debug and trace for more information.