Have service engine light on, code p0340 on a 2011 f250 6.7l. Also has a long crank. Sometimes have to
cycle key more the once before it will start. Has a new cam sensor.
Are your batteries charged up? Will not start if battery voltage drops below 10.5 vdc. Could be a bad CPS which you have replaced (bad from supplier). Good luck!