- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to debug a CY8CKIT-059 (CY8C5888LTI-LP097 device) programmed with a code example from Cypress with a MiniProg3 and PSoC creator 4.0 .
The programmer and device target are visible and I am able to connect to the device (using external or 3.3/5Vtarg power supply). The project builds well and I get an output in the command window that says that the target has been properly programmed.
Then, when it tries to switch to debug mode I get this error:
"error: dbg.M0015: Debugger exited unexpectedly during run. Encountered error (Target disconnected See output window for more information."
and the show details tab:
"There was an unhandled error during the debug session. This has forced the debugger to shutdown. Try again."
Even if I try again it does not work at all.
Then I tried with PSoC Creator 3.3 and I am able to debug. Is somebody able to fix that problem on PSoC Creator 4.0?
Regards,
Xavier
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please try "Attach to Running Target" Option Given under Debug tab in PC4.0 for debugging the project after Programming the device.
Attaching a pic for more clarity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, Xavier.
Check that in Workspace -> System -> Debug settings is set to SWD and not to GPIO
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't find this menu. Where is it?
When I go to select debug target, I can choose between JTAG and SWD, and SWD is chosen.
Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Workspace explorer -> System -> Debug settings
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I thank you for your answers Bob, but I can't find that in PSoC Creator 4.0 . Can you send a snapshot please?
Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, found it thanks! But it was already set to SWD + SWV, and I also tried SWD only, and I get the same error...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The one provided by Cypress.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It is set to none.
Thanks,
Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please provide us with the project you are debugging,we will try to reproduce the issue at our side first on CY8CKIT-059 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is the BasicDesign01 project provided by Cypress' code example kit for the CY8CKIT-059. It is as is, no changes made. But, it also does that with every code example from the kit. I go File -> New -> Project... Check target kit: CY8CKIT-059, next and code example, then I choose an item and I click finish.
I am running windows 10 Home 10.0.14393, Intel i5-3570K 3.4GHz, 64 bits
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please send the snapshot of your build settings in PC4.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content