It helps a lot when you post DTC's if you post at least the description. P0171 I could fix in my sleep while having a wet dream and never disappointing the girl. P0332, gotta go look up.
P0171 Lean Bank 1 (Vacuum leak, corroded battery cables, leaking EGR tube)
P0332 Knock sensor .. some of the things required to set the code (like running for at least 10 seconds) don't work with it stalling. Is this a previous code?
BTW, here's the FSM on P0332
GearChatter.com :: View topic - DTC P0327 or P0332