Diagnostic Procedure
WARNING: This page is about a different car, the 2002 Nissan Maxima and 2002 Infiniti I35. However, it is still accessible from the selected car via links, so may be relevant.
Start engine and let it idle. Check for air intake leak after mass airflow sensor. If leak is found, repair as necessary. If no leak is found, replace ECM.