- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
GCC optimisations are configured as Debug (-Og).
What am I missing?
Solved! Go to Solution.
- Labels:
-
PSoC Creator Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Romain,
Could you share with us your full project, so that we can try to reproduce and solve the issue?
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!