Originally Posted by Skeptic
This is going to sound out there, but have the battery tested. It may have enough to crank and start, but the voltage can drop low enough to cause the ecm to re-set. I've seen it before. Corroded terminals, or anything that can cause a voltage drop will cause the same thing. Good luck wave


This is true.
In 2006 when I was shopping for a new truck, I saw a nice new one on a lot where it sat long enough to let the battery go flat. They jump started it but it ran rough and would barely move.
Friday, I retrieved a long dormant 2004 Toyota. I had to jump start it. I had no spare batteries around to swap in so I jump started and drove it. After 3 miles, the gauges started flickering and the engine stalled. Subsequent restarts were met with a gas pedal that now does nothing. The code reader determined a dead throttle position sensor. I suspect that running it with the alternator providing all the power somehow damaged the electronic speed sensor in the gas pedal assembly.