How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask MCVGreg Your Own Question
MCVGreg, Master Troubleshooter
Category: Car
Satisfied Customers: 7876
Experience:  25 + Years Working with Cars & Electronic Control Systems
Type Your Car Question Here...
MCVGreg is online now
A new question is answered every 9 seconds

1998 pontiac sunfire: the timing goes..crankshaft..camshaft position

Customer Question

On a 1998 pontiac sunfire I get P0335 and P0342 codes written to the computer only sometimes. When it happens the engine faulters like the timing goes way off. I changed the crankshaft and camshaft position senders. I even tried a different computer also ignition module. I checked all wiring and ground connections. I clear the codes and will come back after 3 to 10 starts This car has only 66k miles Help please. Lowell from Alton, IL
Submitted: 8 years ago.
Category: Car
Expert:  MCVGreg replied 8 years ago.

Hi Lowell & Welcome. Sorry to hear about the problems with your Sunfire.

I noticed that you did not mention that any "relearn" procedure was done when you replace the Crankshaft Position Sensor. According to both of the test charts for those error codes, it mentions that this procedure must be done any time the PCM is replaced or when the crankshaft position sensor is moved in any way. They are very sensitive. Even removing, inspecting, and putting the same part back into position can cause problems.

Here is the relearn procedure for the crankshaft position sensor. Unfortunately, it takes a GM Tech 2 scanner (or equivalent) to cause the procedure to occur.

CKP System Variation Learn Procedure


A Crankshaft Position System Variation Learning Procedure must be performed any time a change is made to the crankshaft sensor to crankshaft relationship. Changing the crank sensor to crankshaft relationship will not allow the PCM to detect misfire at all speeds and loads accurately. Resulting in a possible false misfire DTC being set.


Removing a part for inspection and then reinstalling the same part is considered a disturbance. A false DTC P0300 could be set if this procedure is not performed.

The learn procedure is required after the following service procedures have been performed, regardless of whether or not DTC P1336 is set:

  • PCM replacement.
  • Engine replacement.
  • Crankshaft replacement.
  • Crankshaft position sensor replacement.
  • Any engine repair(s) which disturbs the crankshaft/harmonic balancer to the crankshaft position sensor relationship.


Before performing the Crankshaft Position System Variation Learning Procedure always set the vehicle parking brake and block the drive wheels in order to prevent personal injury. Release the throttle immediately when the engine starts to decelerate in order to eliminate over revving the engine. Once the learn procedure is completed, the control module will return engine control to the operator and the engine will respond to the throttle position.



The battery must be fully charged and in good condition. The scan tool connection at the DLC is clean and tight before starting the Crankshaft Position System Variation Learning Procedure.


  1. Close the hood.
  2. Block the drive wheels and set the vehicle parking brake.
  3. Put the vehicle in Park or Neutral.
  4. Turn all the accessories OFF.
  5. Install a scan tool.
  6. Start and run the engine until it is at normal operating temperature 85°C (185°F).
  7. With the engine still running, enable the Crankshaft Position System Variation Learning Procedure with the scan tool.
  8. Press and hold the brake pedal firmly and raise the engine speed to the specified value, RELEASING the throttle as soon as the engine cuts out.
  9. Verify with the scan tool that the crankshaft variation has been learned.

Perform this procedure up to 10 times. If the PCM will not learn the variation, a DTC P1336 should be set.

Having this procedure performed may help resolve the problem. A reasonable shop should only charge you for the actual time it takes to perform the procedure.

I hope this helps.

Take Care, Greg A.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

  • I would (and have) recommend your site to others I was quite satisfied with the quality of the information received, the professional with whom I interacted, and the quick response time. Thanks, and be sure that I'll be back whenever I need a question answered in a hurry. Stephanie P Elm City, NC
< Previous | Next >
  • I would (and have) recommend your site to others I was quite satisfied with the quality of the information received, the professional with whom I interacted, and the quick response time. Thanks, and be sure that I'll be back whenever I need a question answered in a hurry. Stephanie P Elm City, NC
  • used your service this weekend with "Trecers" help. thank you ,thank you, thank you. replaced an A/C fan motor. Local Auto Zone had part. $15.00 "tracer" fee and $40.00 for parts, I saved several hundreds of dollers at a shop. i will recommend you and use you in the future. David L. Richmond, TX
  • 9 dollars, 2 hours of my time, and I drove away. Your diagnosis was right on the mark. Thank you so much. Phil Marysville, CA
  • Lurch. Thank you very much. I had real doubts about this website but your promptness of response, quick followup and to the point answer with picture was incredible. Charles Walnut Creek, CA
  • As a single woman, I really appreciate an excellent and affordable opinion.
    Thank you Geordie, I will not hesitate to contact justanswer in the future!
    Sue Charleston, WV
  • Another great insight to what may be the problem. I will have my mechanic take a look at it tomorrow. Thanks again, do indeed know your stuff. Jim Castleberry, FL
  • Excellent reply, and also very quick. Really sounds like the Expert knows what he is talking about. I will be back to use your service when I need more help with my RV. Dutch USA

Meet The Experts:

  • Chris (aka-Moose)

    Chris (aka-Moose)


    Satisfied Customers:

    16 years of experience
< Last | Next >
  • Chris (aka-Moose)'s Avatar

    Chris (aka-Moose)


    Satisfied Customers:

    16 years of experience
  • Ted G.'s Avatar

    Ted G.

    ASE Certified Technician

    Satisfied Customers:

    20 years auto repair experience, ASE Master Tech, Mechanical Failure consultant, Expert Witness
  • George H.'s Avatar

    George H.

    ASE Certified Technician

    Satisfied Customers:

    ASE Master Tech 15+ yrs, AAS Automotive Technology, Factory trained Asian specialist
  • GM Tech (Cam)'s Avatar

    GM Tech (Cam)

    Auto Service Tech

    Satisfied Customers:

    GM Grand Master Technician 2007. 14 years experience.
  • Amedee's Avatar


    Former ASE Master Tech

    Satisfied Customers:

    ASE certified tech advanced level specialist. Wisconsin certified emissions state inspector
  • Jerry's Avatar


    Master Mechanic

    Satisfied Customers:

    ASE master, 30+ years. All makes and models. Trouble shooter, shop forman, service manager
  • Richard's Avatar


    ASE Certified Technician

    Satisfied Customers:

    12 years Ford Lincoln/Mercury Jaguar dealership as a technician and shop foreman reparing all makes