Function Hierarchy in PSOC Creator 3.0

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

cross mob
Anonymous
Not applicable

Hello all,     

   

I am new to PSOC creator 3 and programming. In the code explorer window (on the right side) we can view what functions we have declared or defined in a particular file. I want to view the functions in the order of their hierarchy i.e. which function is calling what other functions and where their definitions are. This will help me a lot in debugging the code.       

   

Please tell me how I can do that.     

   

Thank you very much     

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

Just right-click on a function name in the code-window and you can get declaration, definition or references of that function.

   

Error-free compilation required.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

For more sophisticated profiling tools just Google GNU or "GCC Profiling Tool".

   

Currently Cypress not offering a profiler.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

It would be interesting if Cypress can provide profiler for PSoC creator.

0 Likes
Anonymous
Not applicable

Thank you all for your reply,

   

I tried using the option "find active references" (by right clicking on function name) however it only shows the instances where that function is used. I want to know how many functions are being called by that particular function and location of their respective definitions and usages.

   

 

   

I was thinking it would be nice if in code explorer window we can see the hierarchy of functions. I would really appreciate if cypress can introduce that. Otherwise debugging becomes extremly difficult as the code complexity increases.

0 Likes
Anonymous
Not applicable

Keil 8051 compiler produce call tree

   

http://www.keil.com/support/man/docs/bl51/bl51_ol_calltree.htm

   

You can check the map file of your project and check for overlay map of module.

   

See if this can help

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Take a look at the menu items in this overview of the

   

profiler, shows capabilities -

   

 

   

    

   

          http://www.keil.com/uvision/db_anl_pa.asp

   

 

   

Regards, Dana.

0 Likes