Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Proteus 8 Stack Overflow Problem for 46K80

Status
Not open for further replies.

apsua

Member level 3
Joined
Feb 13, 2015
Messages
62
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
538
Hello,

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.

What can be the reason?

Thanks.
 

Zip and post your code. If happens if you have highly nested if() conditions in main() and also highly nested functions.
 

The code is in the attachment.
 

Attachments

  • codes.rar
    22.1 KB · Views: 66

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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top