I believe that the ONLY way to mask interrupts while single-stepping is to clear the IE flag bit in the Status Register. Jim Wagner On Feb 6, 2013, at 6:54 PM, Dave McLaughlin wrote: > Thanks John and all, > > It's not just the timer interrupt, I also have CAN bus interrupts running. > The timers halted option is set anyway. > > I don't recall ever having to disable interrupts before. > > Doing a search I come across a few references to an option to mask > interrupts during single stepping but can't find this in Studio 4 > > Dave. > > From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf > Of John Samperi > Sent: 07 February 2013 02:13 > To: AVR-Chat@yahoogroups.com > Subject: Re: [AVR-Chat] How to set interrupt mask whilst single stepping > > At 12:49 AM 7/02/2013, you wrote: > >Since doing so, I can't find the option to set interrupt mask during single > >stepping so every time I single step my code, I end up in one of the 2 > >interrupt handlers! Make debugging a nightmare. > > You can stop the stop timers from running on break, is this what you want? > > Regards > > John Samperi > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] How to set interrupt mask whilst single stepping
2013-02-07 by Jim Wagner
Attachments
- No local attachments were found for this message.