Engine off, ignition on.
Battery voltage min 11 V.
If misfire faults have been rectified the adaption must be performed.