Has the PCM been reprogrammed to match the vehicle? They are not a plug and play part. Were all of these parts replaced at the same time or was it replace the fuel pump, then get the code and replace the cam sensor then when it still had the code the ECM was replaced?
P0340 is a circuit code, it means the signal from the sensor isn't getting to the ECM. That could be from a bad sensor but more common is a bad connection or break in the wiring from the sensor to the ECM. There is also a difference in the parts in the system on those cars. Things changed at VIN 386333 so a number lower than that is different than one above it, the same applies to the ECM. The information doesn't say what the change was but it is highlighted in the service information.
As for the code I would check the wiring from the sensor to the ECM for corrosion, damage or even a loose connector pin. The wiring and test process and results are attached.
Images (Click to make bigger)
SPONSORED LINKS
Tuesday, August 25th, 2020 AT 4:19 PM