Disabling interrupt masking in debug mode (AStudio 6.1)?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,

 

I can't find the option to disable interrupt masking in the debug mode. In the Project/Tool settings I have the simulator in the debugger/programmer drop down menu.

 

This is how my debug/option settings window looks like (v. 6.1), there is no debugger line:

 

 

thanks

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I never found a way to do that.

 

There is a debug constant defined when you set the project to be debug rather than production or what ever it is called. And, you can do a #ifdef DEBUG or something close to that. This setting is in project properties -> build -> configuration. Mine shows a drop-down with Active (debug), Release, Debug (AS 6.2). The symbol is shown in Properties -> Toolchain -> AVR/GNU C Compiler -> Symbols.

 

HOWEVER, this debug constant is NOT tied to whether or not you are doing actual debugging. I ended up with my own define and my own interrupt enable conditionals. That seems to be the easiest way to do it. BUT, YOU have to remember to undefine that when you go to non-debugging operation. Or you can use the configuration setting to control whether or not DEBUG is defined. Again, its manual, not automatic.

 

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA http://www.orelectronics.net

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Should be in Tools|Options|Tools|Disable Interrupts while stepping. (Note, only while stepping, not while running).

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:

Should be in Tools|Options|Tools|Disable Interrupts while stepping. (Note, only while stepping, not while running).

 

Thanks!