On the 2004 Hyundai SantaFe with the 2.7L engine, the P0335 and P1372 codes are related. Both point to a problem with the Crankshaft Position Sensor. This sensor plays a role in spark delivery, so if/when faulty, can cause the symptoms you have described above. The sensor is located just below the ignition coil pack. Carefully inspect the electrical connector and wire harness for any loose, broken or damaged wires. If no problems are found, the Crankshaft Position Sensor will need to be replaced. To replace, unplug the electrical connector. Remove the mounting Bolt. Then, using a twist-and-pull motion, remove the sensor. When installing the new sensor, use a light coat of fresh engine oil on the rubber o-ring. The oil will aid the ease of installation.
Does your vehicle have a similar problem? Get connected to a Live Q&A session with a certified Auto Mechanic and get your answers on this problem now!