I have a 2003 Maxima 6 speed, I just replaced the engine, at first I kept getting the p0335 code, but the car would take a long time to start but eventually it would start and run strong. I realized the reason for the code is I mixed up the sockets for the Crank Position with the O2 sensor. After correcting the crossing the car will now start right up but idle like hell for a few seconds and die, I tried pressing the accelerator and that doesn't help. I have an OBD2 scanner and I checked the readings from all the sensors and everything seems to be responding ok. Any ideas? I went through the, Accelerator Pedal Release Position Learning Procedure for 2K2+ and the Throttle Valve Closed Position Learning Procedure for 2K2+ still with no luck, any suggestions on where to go from here? If I unplug the crank sensor it runs fine just takes a while to start.
Thanks everyone for your help.