When swapping motors, replacing crankshaft position sensors, or tuning; sometimes a P0315 code will pop up that requires you to do a Crankshaft Position Variation Learn sequence. This can be done with a Tech2 scanner, which is what I will be showing you how to do.
https://www.obd2tool.com/goods-1568-G...