>P0505 suggests that your ECU is bad. Open it and inspect the black plastic rectangular pieces that stick up. If they are melted or distorted, the board is damaged. Sorry to say so, but the shorted ECU probably fried your new IACV.
Like this one -
Burned IC on Pathfinder ECU
That's what my ECU looked like after the original problem. I had it rechipped. If I had been able to find a chip myself I would've done it myself and saved the money. I also bought another ECU from a different rebuilder when the dealership manager told me that my rebuilt one (with the new IACV) didn't fix the problem. They swapped the second ECU into the vehicle and still could not get the idle relearn to complete. This is with a new Hitachi IACV installed with the rebuilt ECUs.
I will be opening both of the ECUs that I have on hand tomorrow to inspect them for any problems. Since there has been no burned smell noticed with either of them in the vehicle I don't believe that I will find any problem with either ECU. I may be wrong. It wouldn't be the first time.
I actually read a LOT of posts just like the one you linked before I ever decided this was something I could do myself last February when this thing toasted itself. I had investigated the potential causes and costs to repair and spent a lot of time on these forums investigating. I also downloaded the complete service manual from here to guide what I was doing since I had been working from a Haynes type manual before. I've been back and forth through the whole thing and in the process have done pin-outs and functional tests on things I never wanted to touch. I might be a better man for it but I'm a bit disturbed that I've never had to do anything at this level to maintain my other vehicles.
At the time I had 3 VW diesels, a Passat with 59k miles, a Jetta wagon with 274k miles, and a Beetle with 193k miles. With the present TDI troubles we no longer have the Passat. I also had this Pathfinder that has 228k miles. In addition I have two old Broncos, a 92 with 280lk miles and a 75 with 300k+ miles. I've been around mechanical stuff for a long time and I get my money's worth from everything we buy. The only vehicles in that list that don't run and drive right now are the Pathfinder and the 75 Bronco which is waiting for a full rebuild.I also traded an F250 Crew diesel in on a 2002 Supercharged Xterra when it hit 200k miles and needed a second dual mass flywheel within only 50k miles. That was too much for me. I got rid of the Xterra when it had 12k miles because it only got 11 mpg with my foot in it on the highway. I traded it for the Jetta wagon. Good trade if you consider I went from 11 mpg to 44 mpg immediately.
>the idle relearn on a 2001 does not involve the gas pedal
I have to disagree here because you have to have the vehicle idling while you pull the brown connector from the TPS. My vehicle wouldn't idle until today without someone having a foot on it so it was not a one man job to do the relearn. Even today part of the reason that the relearn won't complete is due to the fact that the vehicle idles so low that when you make it to the part where you have to rev the engine several times to make sure it idles okay the engine will die effectively terminating the process before it is complete. Every step requiring the engine to be started also requires a foot on the gas in my vehicle right now.
I totally agree that most of that relearn is just key on key off and the ECU harvesting voltage values from sensors to serve as reference values. It also does require the user to hit the gas though to verify the correct rpm and to use the gas pedal to maintain engine rpm while it warms up if it won't idle on its own like mine.
The last dealer tech struggled with this relearn using the Consult system and never got it to idle correctly. At various times he had it idling ~1500 rpm but not lower without getting it to relearn or he had it failing to idle at all and unable to relearn using both ECUs and new IAC, MAF, TPS.
Neither tech ever checked the PCV valve which must work normally for this to complete. I replaced that myself after I retrieved it from the last dealership finding that the original one was probably never replaced in 228k miles. It was nearly completely blocked.
I will check the ECUs that I have tomorrow to make sure that they are good. I will also check the pin in the IAC harness since it is not in the best shape as I tried to describe earlier. If this connection is not good then it doesn't matter whether the ECU or the IAC or the TPS works right, nothing good will happen. It may actually produce a short between a good IAC and a good ECU if the connection is intermittent.
This is my IACV connector -
Damaged IAC connector on Pathfinder
I really appreciate that you've taken the time to review my posts. Thanks!