Question
Debugging SPC56EL behaves strangely
Posted on September 04, 2017 at 14:35
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. #pls #spc56 #32bits #microcontroller