The service manual describes code 12 as "normal signals are not received from the crank position sensor". It identifies 6 probable causes to check for in a specific order. Number 5 is checking the resistance of the cps, which you already did, and found it to be within range. Unfortunately...