A P0505 error a malfunction in the Idle Air Control Valve or its control circuit. This is common when the IAC valve goes bad, and it will cause the engine to stall out. here is the location of the valve and a generic guide to help you understand what I am talking about:
https://www.2carpros.com/articles/idle-air-control-valve-service
This guide can help as well:
https://www.2carpros.com/articles/stall-at-idle
Check out the images (below). Please upload pictures or videos in your response to any problems so we can see what to help you with.
Image (Click to make bigger)
Tuesday, April 30th, 2024 AT 7:33 PM