Reply by rdrdr2k March 27, 20032003-03-27
--- In , Naveen <naveen_pn@y...> wrote:
>
>
> Hi All,
> Not sure anyone has ever required to set break points within
interrupts,
> but this seems to be a serious limitation of the MPLAB v6.13 + Hi
Tech PICC
> combination.
>
> I'm using MPLAB v6.13 along with Hi-Tech PICC compiler v8.01 PL3.
> I'm unable to set breakpoints within the interrupt function in the
C code,
> whereas I can set the breakpoints in any other function including
main.
> When I was using MPLAB v5.62, with the same compiler, I did not
have such
> problems and I could set breakpoints even within the interrupt
functions.
> I'm desperately in need to set breakpoints within the interrupts
to debug a
> program and I want to do it using MPLAB v6.13. Any suggestions or
help in
> this regard would be greatly appreciated. The same problem
persists with
> MPLAB v6.10
>
> Best Regards,
> Naveen.P.N.


I have the same exact problem. I've gotten around it in two
different ways:

1) Pull your interrupt handler code out of the interrupt handler
proper and put it in a subroutine that the interrupt handler
calls. You should be able to set a breakpoint in this
subroutine.
2) Put a breakpoint at address 04x (i.e., the address of the
interrupt handler vector) in the "program memory" window.
For some reason, I can't set the breakpoint in this window
by double-clicking. I have to right click and select 'set
breakpoint'.

Good luck.


Reply by Naveen March 27, 20032003-03-27


Hi All,
Not sure anyone has ever required to set break points within interrupts,
but this seems to be a serious limitation of the MPLAB v6.13 + Hi Tech PICC
combination.

I'm using MPLAB v6.13 along with Hi-Tech PICC compiler v8.01 PL3.
I'm unable to set breakpoints within the interrupt function in the C code,
whereas I can set the breakpoints in any other function including main.
When I was using MPLAB v5.62, with the same compiler, I did not have such
problems and I could set breakpoints even within the interrupt functions.
I'm desperately in need to set breakpoints within the interrupts to debug a
program and I want to do it using MPLAB v6.13. Any suggestions or help in
this regard would be greatly appreciated. The same problem persists with
MPLAB v6.10

Best Regards,
Naveen.P.N.



Reply by Naveen March 26, 20032003-03-26

>Date: Wed, 26 Mar 2003 22:19:26 +0530
>To: "ben" <>
>From: Naveen <>
>Subject: breakpoints within interrupts
>
>Hi All,
>I'm using MPLAB v6.13 along with Hi-Tech PICC compiler v8.01 PL3.
>I'm unable to set breakpoints within the interrupt function in the C code,
>whereas I can set the breakpoints in any other function including main.
>When I was using MPLAB v5.62, with the same compiler, I did not have such
>problems and I could set breakpoints even within the interrupt functions.
>I'm desperately in need to set breakpoints within the interrupts to debug
>a program and I want to do it using MPLAB v6.13. Any suggestions or help
>in this regard would be greatly appreciated.
>
>Best Regards,
>Naveen.P.N.

Best Regards,
Naveen.P.N.