cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

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
Reply
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
Reply
3 Replies
Moderator
Moderator

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
Reply
Moderator
Moderator

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
Reply
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
Reply