I am working on a new software, and I wanted to move by testing in every level. When I try to test the software in Proteus - the mcu is PIC18F46K80 -, proteus gives thousands of stack overflow messages. When I test it in MPLAB-x, there is no stack overflow.
Are you able to debug properly in MPLAB ? Are you using CCS C Compiler with MPLAB 8 plugin ? I see that you have some codes in header (.h) files. A header file should only contain #defines and function prototypes. It should not contain source codes or function definitions. You have to create .c files for source codes. It will be better if you zip and post the complete MPLAB 8 project files which also contaim .mcp and .mcw files.
Hello,
You can see Timer0Init function in StartUp.h, I have detected that if I cancel that function, the problem is solved. But what is the problem with that function, I couldn't find it yet. I will appreciate any help over that case, too.
Note: The codes in the .h files don't cause problem, because I don't have problems in my previous big projects.
Thank you very much.