First, to be sure I'm clear, you said, "The lights turned on radio worked just fine but it would not crank." That's a starter problem, not a running problem. Be sure to correct me if I have this wrong.
Everything else you described can be caused by idle speed that's too low. Rather than waiting a few minutes, just hold the accelerator pedal down 1/4" when trying to start the engine. If that works, do the drive cycle I described. If ide speed is still too low, do that procedure while holding the brake pedal up with your foot. On rare occasions, one section of the brake light switch will vibrate on and off on bumpy roads and cancel the relearn.
Another cause of stalling is a failing crankshaft position sensor or camshaft position sensor. I didn't go down that road because much of what you described doesn't fit. They often begin to fail by becoming heat-sensitive on all car brands. They'll work fine while driving due to normal air flow keeping them cool, but when you stop for a short time with a hot engine, that heat migrates up to the sensors causing one to fail, then it will work again after cooling down for about an hour. There's too much of your description that suggests this is not the cause of the stalling.
If the drive cycle doesn't solve the stalling, you'll need a scanner to view the "idle steps". That has to do with what the Engine Computer is doing to control idle speed. It can place the idle speed motor to one of 256 positions, or "steps. For a properly running engine, step 32 is typical. If you find it at step "0", minimum throttle hasn't been relearned yet. If you find it considerably higher than step 32, the computer is trying to increase idle speed, but without success. We can pursue that too if we need to.
Friday, June 9th, 2023 AT 4:58 PM