Welcome to AF! I assume with a code 17, that you do not have spark when it don't start. That would indicate the crank position sensor (CKPS) is not doing its job. You could also have a “failure to communicate” from the CKPS through the ignition control module (ICM). You need to check for spark when it will not start and if you have a tach or scanner, check for RPM. If no RPM is indicated, replace the CKPS first!