AnsweredAssumed Answered

Debugging SPC56EL behaves strangely

Question asked by Raghu Rajappa on Sep 4, 2017
Latest reply on Sep 4, 2017 by Erwan Y

I have a simple for loop that should ideally run 20 times, inside which I toggle an LED.
When I debug this code on my SPC56EL controller (on a daughter board which is mounted onto the XP56 motherboard) WITHOUT hardware breakpoints, it toggles only once and exits the main handler (confirmed this behavior). But when I add breakpoints in the loop, it works perfectly. Any logical reasoning for such a behavior?

Summarizing - The code works when I put breakpoints in the loop but executes the loop only once when I do not put any breakpoints in the loop. 

Outcomes