PSoC doesn't halt at breakpoint

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm trying to debug a CY8C4245LTI-M445 using PSoC Creator 4.2 and the MiniProg 3.

When starting the debug session, the yellow arrow points on the first line in the main(), but the code is actually executing.

When hitting a breakpoint, I can look at the local variables, but that doesn't halt the execution. I tried playing with the "Disable Global Interrupt" button, without success.

See below the CYDWR (programming pins are set as SWD (serial debug).

pastedImage_0.png

GCC optimisations are configured as Debug (-Og).

What am I missing?

0 Likes
1 Solution
Anonymous
Not applicable

The problem was coming from the Watchdog timer.

If the WDT is enabled, the debugger doesn't halt the execution.

I disabled the Watchdog in the Design Wide Resources / Clocks / Edit Clocks and now I can single step, add breakpoints etc...

Thanks!

pastedImage_0.png

View solution in original post

0 Likes
3 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hi Romain,

Could you share with us your full project, so that we can try to reproduce and solve the issue?

Thanks,

Ryan

0 Likes
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

And you could read the KBA also, to look for if there are any helpful information for your questions.

Troubleshooting PSoC® 3/4/5LP Programming/Debugging Issues - KBA210619

0 Likes
Anonymous
Not applicable

The problem was coming from the Watchdog timer.

If the WDT is enabled, the debugger doesn't halt the execution.

I disabled the Watchdog in the Design Wide Resources / Clocks / Edit Clocks and now I can single step, add breakpoints etc...

Thanks!

pastedImage_0.png

0 Likes