When a DTC is stored in ECM
WARNING: This page is about a different car, the 2013 Nissan Xterra. However, it is still accessible from the selected car via links, so may be relevant.
When a DTC is stored in ECM and MIL is ON, a permanent DTC is erased with MIL shut-off if the same malfunction is not detected after performing the driving pattern for MIL shut-off three times in a raw.