if you have rpm on the scan tool (allll the time, every time while cranking; starting or not starting), then there's nothing wrong with the CPS, or the wiring to PCM from the CPS, in my opinion.
if you have a 'scope..what are you seeing 'fall out' when the truck dies?
FDCS, CID, CPS signal(s)...