Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > How to debug a self made component ? API source files not found by debugger !

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



How to debug a self made component ? API source files not found by debugger !
Moderator:
JFMD

Post Reply
Follow this topic



How to debug a self made component ? API source files not found by debugger !

RobertoGatti posted on 05 Apr 2013 11:44 AM PST
Member
3 Forum Posts

 

The component works as expected, but the debugger says it cannot find the source files for source-level debugging.

Debugging components API in standard libraries works fine.

 

Any ideas ? 




Re: How to debug a self made component ? API source files not found by debugger !

RobertoGatti posted on 05 Apr 2013 05:23 PM PST
Member
3 Forum Posts

Debbugger cannot find source files only if the component is in a library project.

If the component is in a design project it works fine.

I'd like to develop a library debugging it in place..



Re: Debugger bugs

RobertoGatti posted on 06 Apr 2013 08:05 AM PST
Member
3 Forum Posts

 I was wrong: it seems the debugger has bigger problems.

It cannot locate the source file if the parameters of the function you are stepping into have more than one pointer.

Try to step into these functions, even in THE SAME file:

void bugs(int *i, int *j)
{
    while(i!=j);
}


void nobugs(int i, int j)
{
    while(i!=j);
}


That's pretty fucked up for a debugger!

Who debugs the debugger ? That's the question!


Re: How to debug a self made component ? API source files not found by debugger !

hli posted on 08 Apr 2013 02:43 AM PST
Top Contributor
675 Forum Posts

Can you switch the debugging to use JTAG? Maybe this helps (see http://www.cypress.com/?id=4&rID=38481 )






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20