This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to "find all reference" of a variable or function

Hi, I'm using Keil MDK ARM 5.20.

I currently moved to Keil so I'm new to this tool. Before this change, I used IAR EWARM.

The IAR EWARM had these useful features;
"Find All References to "foo"",
"Find All Calls to "foo"",
"Find All Calls from "foo"", where "foo" can be a variable or a function.

These features allowed the users to check whether a function is called in which line and which source file.

Similar to this, does Keil uVision 5 suppoorts similar features?

-Best Regards, David

  • Well there is "Find in File(s)" which is quite effective.

    The linker also generates an HTML file with functions broken down, and each having a "Called By", and a Static Analysis of the generated application.

    There are right-click menu options to go to definitions and references, though they are less than ideal.

  • Thanks for the tip about "Find in File(s)". It is quite effective.

    "The linker also generates an HTML file" - Where can I find this?

    By the way, my project settings - Listing has
    Assembler Listing,
    Linker Listing : \Listing\xxx.map
    Memory Map, Symbols, Size Info, Callgraph, Cross Reference, Totals Info, Unused Sections Info, Veneers Info
    checked and
    project settings - Linker has
    Use memory Layout from Target Dialog,
    Report "might fail" Conditions as Errors
    checked.

    -Best Regards, David

  • Should be in the output directory as FOO.HTM, along with FOO.AXF and FOO.MAP