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

USB EZ-PD™ Type-C

SlavaB
Level 2
10 replies posted 5 replies posted 5 questions asked
Level 2

After acquiring CY7C65219 device with MiniProg3, the Debug option in the Debug menu is still grayed out. What am I doing wrong?

SlavaB_0-1624425964886.png

SlavaB_0-1624426526571.png

 

 

0 Likes
1 Solution
PranavaYN
Moderator
Moderator 50 likes received First comment on KBA First question asked
Moderator

Hi,

For the particular project you are trying to debug, as the linker script is used, the error thrown is due to the linker not able to find the bootloader binary.

It will be easier to use the second method i.e. to attach to running target and reset - https://community.cypress.com/t5/Resource-Library/Debugging-a-CCGx-bootloadable-project-using-MiniPr...

 

Best regards,
Pranava

View solution in original post

4 Replies
PranavaYN
Moderator
Moderator 50 likes received First comment on KBA First question asked
Moderator

Hi,

In order to debug a Bootloadable project, you can use following methods.

1. Convert bootloadable project into a normal project by disabling "Bootloadable" component in Schematic editor. Then you will be able to debug the project.

2. You can use "Attach to running target" from Debug menu and reset the code execution.

Please find similar threads: 

https://community.cypress.com/t5/PSoC-4-MCU/Debugging-Bootloadable-Projects-with-CY8CKIT-145-40XX/m-...

https://community.cypress.com/t5/Resource-Library/Debugging-a-CCGx-bootloadable-project-using-MiniPr...

 

Best regards,
Pranava
0 Likes
SlavaB
Level 2
10 replies posted 5 replies posted 5 questions asked
Level 2

When I tried to disable Bootloadable, I got an error message:

SlavaB_0-1624527518252.png

 

Then I changed the project settings as shown in the picture below:

SlavaB_1-1624527518256.png

 

As a result, I got a new error message:

SlavaB_2-1624527518259.png

 

Then I changed the debug target to "Application Code and Data":

SlavaB_3-1624527518260.png

 

And got the following error message:

SlavaB_4-1624527518262.png

Then I commented out the body of the dmc_jump_to_alternate () function and the compilation failed without any explanation:

SlavaB_5-1624527518262.png

In this case, I don't know what to do. Please help.

0 Likes
PranavaYN
Moderator
Moderator 50 likes received First comment on KBA First question asked
Moderator

Hi,

For the particular project you are trying to debug, as the linker script is used, the error thrown is due to the linker not able to find the bootloader binary.

It will be easier to use the second method i.e. to attach to running target and reset - https://community.cypress.com/t5/Resource-Library/Debugging-a-CCGx-bootloadable-project-using-MiniPr...

 

Best regards,
Pranava
SlavaB
Level 2
10 replies posted 5 replies posted 5 questions asked
Level 2

Hi Pranava,

Thank you very much! "Attach to a running target" solved the problem. In addition to the settings described in the article, I had to change the "Debug Target" from "Application Code and Data" to "Application Code and Data2". In the first case, the disassembly window was displayed instead of the source code.

Regards,
Slava



0 Likes