AnsweredAssumed Answered

Stuck before "main" during runtime

Question asked by Brian Carroll on Nov 30, 2009
Latest reply on Dec 2, 2009 by Brian Carroll

Hi,

I'm using the MC9S08QE8 with CodeWarrior 6.2, and I'm having some difficulty during debug.

 

My code compiles with no errors or warnings, but when I load it into the processor for debugging and try to run it, it gets stuck before "main" function. I get some messages about the clock frequency changing. When I hit "stop" in the debugger, the program counter is at zero.

 

This behaviour seems to be very sensitive to exactly what lines of code I insert or delete. Sometimes I delete a line of code and everything is OK again for a day or two, before I run into the problem again. I haven't found any pattern as to which lines of code affect it.

 

Does anyone have any suggestions what might be causing this?

Please also tell me what other info I should add to this post - I'm not sure what's relevant! 

 

Thank you! 

Outcomes