You are here

Single stepping around interrupts | Cypress Semiconductor

Single stepping around interrupts

Summary: 2 Replies, Latest post by JJHawg on 08 May 2011 11:54 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_5586528's picture
37 posts

Okay, so this is annoying.  I have a 100ms timer interrupt and when I try to single step through my code guess where I spend all my time.  Is there a way to single step without going into ISR's?

rtcy's picture
Cypress Employee
112 posts

There is no build-in way to disable interrupts while stepping. 

On PSoC3, the user can do it manually by setting the EA bit within the IE register to 0 before the step and 1 after the step.  This is one of the standard 8051 registers that is listed in the disassembly window.

Having a 100ms interrupt is a hard real-time requirement, single step is a different domain, the non real-time domain. Unfortunately these two domains do not go well with each other.

I hope this helps, Robert

JJHawg's picture
19 posts

This isn't any more great news, but my work around for this has been to keep moving breakpoints around and not use the single-step feature...

One thing that I have tried in certain cases is to comment out the global interrupt enable call, then I can step through some code. Of course, in most cases this won't help much...

Log in to post new comments.