Using the simulator the program in question works sometimes and sometimes doesn't. I am trying to isolate a couple of problems as a last resort by placing an endless loop in the code (endhere. . . . goto endhere). But it breaks out of that. I've turned off the interrupts, they aren't used at all in the program. On the simulator it will jump to incorrect places from a certain point. It has gone to
1700 lines in the editor, and only the last bit of code added has shown this. The stack should not be causing this by overflowing, as in this situation it isn't running more than one or two nested loops. All the calls at this point have finished, and the routine is simply to go back to an earlier point with a goto. But as I said, even placing an endless loop won't keep the code in check. The WDT is off also. I'm looking for a general answer so won't post the code. Please help!- posted
16 years ago