Power-on reset asserts all the debug resets and then returns them to their default state as defined in the SLCR registers. During a debug reset, the PMU writes the APB register that acts as a software reset and toggles the debug reset that needs to be reset. System reset does not affect debug resets.