I know this thread is old but I didn't want to start a new one.
I'm still having this problem with my car. Both codes have been giving me fits. P0171 and P0170. I've replaced evap canister, gas cap, Cat... I think that was related to a p0148. Don't quote me on that though. Egr valve and...