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.

[PIC] Program halted after some time (around 100 seconds)

Status
Not open for further replies.

urnuj

Junior Member level 3
Joined
Jul 16, 2015
Messages
27
Helped
1
Reputation
2
Reaction score
1
Trophy points
3
Activity points
217
Hi

The MCU is pic33ep512MU814 and it is being compiled and debugged using MPLABX and XC-16.

I have set it up in a while loop with a timer interrupt to handle some processes.

The program is able to run normally when it is being debugged but it is halted due to a break in user code after 100 over seconds.

Is there a reason that it is not able to continue running and being caused to stop?

Regards
 

hello,


it can stop because
- Watchdog armed and time elapsed without CLRWDT ...
- RAM area table overwrite
not enough size of element in RAM Table assigned to a variable
example : size of ascci char used with float to ascii conversion
- branc error in the program wich can occurs after n iterations
- to much subroutines imbrication => stack overflow
- to weak battery.. restet by under voltage


your source must be analysed in detail to have a more precise idea.
Check if you hare next to the limit of RAM and ROM amount used by your application
Add TRACE information to find out where you get stop.
 
  • Like
Reactions: urnuj

    urnuj

    Points: 2
    Helpful Answer Positive Rating
Use reset cause register and error exception code to narrow down the problem.
 
  • Like
Reactions: urnuj

    urnuj

    Points: 2
    Helpful Answer Positive Rating
Ok. I shall try and narrow it down and see what is causing the problem.
I am guessing it could be memory overun as it is happening at the same time always.

Regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top