Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - breakpoint in ISR ?: (5 Items)
   
breakpoint in ISR ?  
A customer reported an issue with setting a breakpoint in an ISR. He says the breakpoint gets hit, but then the single 
stepping doesn't work (seems to step not along the source lines) and local variables content are displayed incorrectly.

I reproduced it with a small test program (attached).

Is setting breakpoints at all supported in ISR's? If not, why not?


- Malte
Attachment: Text interrupt_examle.c 3.57 KB
Re: breakpoint in ISR ?  
Setting breakpoints in ISRs are not supported, for the same reason that
making a kernel call is not - it invokes kernel services which can not
be invoked in that environment. You're lucking the system didn't just
fall over and die.

On Mon, Dec 01, 2008 at 06:43:59AM -0500, Malte Mundt wrote:
> A customer reported an issue with setting a breakpoint in an ISR. He says the breakpoint gets hit, but then the single
 stepping doesn't work (seems to step not along the source lines) and local variables content are displayed incorrectly.

> 
> I reproduced it with a small test program (attached).
> 
> Is setting breakpoints at all supported in ISR's? If not, why not?
> 
> 
> - Malte
> 
> 
> _______________________________________________
> OSMeta
> http://community.qnx.com/sf/go/post17611



-- 
Brian Stecher (bstecher@qnx.com)        QNX Software Systems
phone: +1 (613) 591-0931 (voice)        175 Terence Matthews Cr.
       +1 (613) 591-3579 (fax)          Kanata, Ontario, Canada K2M 1W8
Re: breakpoint in ISR ?  
If you need some software working in the ISR you could use :

TraceEvent()

and do the tracing stuff......

Jeevan
RE: breakpoint in ISR ?  
Or turn the ISR into a thread via AttachInterruptEvent().

-----Original Message-----
From: Jeevan Mathew [mailto:community-noreply@qnx.com] 
Sent: December-01-08 10:36 AM
To: osmeta-core_os
Subject: Re: breakpoint in ISR ?

If you need some software working in the ISR you could use :

TraceEvent()

and do the tracing stuff......

Jeevan

_______________________________________________
OSMeta
http://community.qnx.com/sf/go/post17639

Re: RE: breakpoint in ISR ?  
Thanks, makes much sense.


- Malte