Error trying to debug CY8CKIT-059 /w MiniProg3 / Creator 4.0

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

cross mob
Anonymous
Not applicable

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

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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.

View solution in original post

0 Likes
15 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum, Xavier.

   

Check that in Workspace -> System -> Debug settings is set to SWD and not to GPIO

   

 

   

Bob

0 Likes
Anonymous
Not applicable

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

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Workspace explorer -> System -> Debug settings

   

 

   

Bob

0 Likes
Anonymous
Not applicable

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

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Bob

   

0 Likes
Anonymous
Not applicable

Ok, found it thanks! But it was already set to SWD + SWV, and I also tried SWD only, and I get the same error...

0 Likes
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Are you using ARM GCC Generic Toolchain or using the Default toolchain provided by Cypress.

   

Check that by-

   

1.Going to Tools>Options(see the attached image)

   

2.Going to Projects>Build Settings(see the image attached)

0 Likes
Anonymous
Not applicable

The one provided by Cypress.

0 Likes
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please check whether the optimization level is set to none or not (as shown in image attached)

0 Likes
Anonymous
Not applicable

Hi,

   

It is set to none.

   

Thanks,

   

Xavier

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please provide us with the project you are debugging,we will try to reproduce the issue at our side first on CY8CKIT-059 .

0 Likes
Anonymous
Not applicable

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

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please send the snapshot of your build settings in PC4.0

0 Likes
Anonymous
Not applicable

   

0 Likes
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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.

0 Likes