Attach to Running Target - no targets

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

cross mob
WiFl_2253191
Level 2
Level 2

I am trying to debug my project, which uses Bootloadable/Bootloader.  This has been working fine for about a year.

When Bootloadable is disabled, I can program the chip and then "Attach to running target" with no problems, so I don't think this is a hardware problem.

When I enable Bootloadable, program, and then try "Attach to running target", no targets are displayed.

"Enable Device Protection" is disabled in the application code and the bootloader.

Any ideas about what could have changed?

Thanks.

0 Likes
1 Solution

Thanks to FAE Kevin Reed for solving this.

Performing "Clean and Build All Projects" solved the problem.

The issue was caused by the .hex file for the Bootloader project not getting updated.  Although I had done a "Clean and Build [MyMainProject]", and "Build All Projects", the Bootloader project had previously been compiled with Code Protection enabled and the .hex output still contained this setting, which prevented the main project from being debuggable (hence, did not show in list of targets).

View solution in original post

0 Likes
3 Replies
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

Ensure that SWD interface is enabled in the project as Debug Select to SWD in the .cydwr window.

Reduce the path size, preferrably unzipping the workspace archive in Desktop.

If it does not help, please share the project and PSoC Creator version to recreate the issue at our end.

0 Likes

Hello Geon,

Yes, Debug Select is set to SWD.

The project is in c:\projects, so the path can't get much shorter.

I am using the latest version of PSoC Creator (4.2.0.641) on Windows 7.

How can I share my project privately with Cypress Support?

Thanks,

-Will

0 Likes

Thanks to FAE Kevin Reed for solving this.

Performing "Clean and Build All Projects" solved the problem.

The issue was caused by the .hex file for the Bootloader project not getting updated.  Although I had done a "Clean and Build [MyMainProject]", and "Build All Projects", the Bootloader project had previously been compiled with Code Protection enabled and the .hex output still contained this setting, which prevented the main project from being debuggable (hence, did not show in list of targets).

0 Likes