I think the code is telling you the answer.......
Check the cam sensor is seated correctly, the wiring is secure and not chaffed.
The timing is set by a chain and sprockets, while chains can stretch and alter the timing by a fraction, it wont be 'out of time' ..... But if the ecu doesnt get a signal from the cam sensor, it will default the ingnition and injection times to a default map and use the crank sensor for baseline timing purposes.