System interrupts and breakpoints - 56F8367 CW v 8.2.3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

System interrupts and breakpoints - 56F8367 CW v 8.2.3

2,228 Views
Charlie
Contributor III

I have been pulling my hair out over this.

 

My code was running fine and then I had to change the communication interface a bit.  When I went to start testing it, whenever I would restart the code after a break point, it would jump into one of those system interrupts.  Either misaligned long word, hardware stack overflow (I would see like 3 entries in the stack window too), or illegal instruction.

 

I disabled ALL of my interrupts so that I could make sure that it wasn't something interrupt related.  Then I started stripping out code to see if I could narrow it down.  But still the problem arose.

 

I put a few break points in my function that sets the ADC registers.  If I stop on these, I see weird values in the ADC rgisters and then, after a start, I will jump to one of those interrupts.  However, if I put the breakpoint AFTER the function, the values in the ADC registers are fine.  It is like they don't get set properly if I break in the function. . . and where I jump out of the program and what interrupt I jump into depends on where I put the interrupts.

 

I tried going back to code that I was using months ago that was working flawlessly (except we had to change the communication interface) and I see the same behavior with the break points.

 

Does anyone have any possible explanation for this behavior?

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

1,114 Views
Kanthi
Contributor II

Hello Charlie,

 

    Remove all the SFR usage(on either side of the statements) within the interrupts. That will solve the problem of unnecessary interrupts which you are getting.

 

    I am using 56F8356 for development, we are also facing the same problem after removing the SFR's usage (on either side of the statements), this problem got solved.

 

   I too am facing the same problem with the ADC's, if you have found any new solution. Please do inform me also.  Thank you.

0 Kudos
Reply

1,114 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

This is not easy to determine the cause of the problem.
The better way will be to log it directly in the Technical support system.
Please use Freescale on line support web page.
  - Go to following URL: http://www.freescale.com/TechSupport
  - Click on Submit a Service Request. You will come to a login page.
  - You can submit your request through the web from there.

Can you please provide us your example reproducing the issue ?

 

Pascal

0 Kudos
Reply