Paul James E. wrote: > All, > > I am working on a 16F628 (Non 'A' version on purpose) using MPLAB's > simulator. All was well until late yesterday. I assembeled my code, > and started the simulator, just as I have done dozens of times before. > Only this time, when I get a TMR0 interrupt, a message comes up in the > output window stating "CORE-E0001: Stack over flow error occurred from > instruction at 0x000209" I've looked at that location, and it's happens > to be a 'NOP'. So, I looked before and after that location, and there > isn't anything that I can see that I would think could cause this problem. > > If I'm understanding this error correctly, it would seem that I'm going > beyond the 8 levels of interrupts that the stack can take care of. > > Doe's anyone have any ideas as to what is happening? Or something I > should look for? I can't send the code as it is being written for hire, > so it is proprietary. When I've seen this, it means that my call tree is more than 8 levels deep at some point. Make a list of "Function A can call function B can call C..." (if you're not using a compiler that provides it - I use BoostC and it does). Make one for main code and one for your interrupt handler. Count the number of levels in both of those lists. If they sum to more than 8, that's a problem. -- Timothy J. Weber http://timothyweber.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist