Have code P0340, Camshaft Position Sensor A, Bank 1. (passenger side)
Changed it out, did some progressive driving, kicks back on. Gone through it and cleared it several times, keeps kicking back on.
Harness looks good, I'm no pro but nothing funky and seats firmly.
I also have knock sensor...