How do I list all factory-made macros, functions and structures of an example project?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I list all factory-made macros, functions and structures of an example project?

1,156 Views
HKPhysicist
Contributor I

Dear all NXP Engineers and Experts,

I am new to NXP and MCUXpresso IDE.

My question are very simple -

  1. How do I list all factory-made macros, functions and structures of an example project?
  2. Is there a Call Graph feature?  How do I start it?

 

My platform is MCUXpresso IDE v11.4 and Windows 10.  Thanks.

 

 

0 Kudos
5 Replies

1,137 Views
ErichStyger
Senior Contributor V

Hi @HKPhysicist ,

1. See https://gcc.gnu.org/onlinedocs/cpp/Predefined-Macros.html , and you can produce a list using -dM -E option, or just pass -dM with the file compiled, it will list them too. Or see https://stackoverflow.com/questions/2224334/gcc-dump-preprocessor-defines

2. There is a call graph feature in Eclipse: Window > Show View:

ErichS_0-1626960414349.png

 

Additionally, I create dependency graphs with doxygen/Eclox, see https://mcuoneclipse.com/2012/06/25/5-best-eclipse-plugins-1-eclox-with-doxygen-graphviz-and-mscgen/

 

I hope this helps,

Erich

1,150 Views
lpcxpresso_supp
NXP Employee
NXP Employee

While I'm not sure I understand what "factory-made macros" refers to, for inspecting an ELF file or a static library, I recommend using the Image Info view. For more details on this, please go through section 17.6 of the User Guide.

Greetings,
MCUXpresso IDE Support

 

0 Kudos

1,146 Views
HKPhysicist
Contributor I

Okay. I have found the Call Graph feature.

How about pre-written macros, functions and structures of the MCU's compiler and this MCU's specific pre-written macros, functions and structures?  These are usually called pre-written libraries.

Is there any method to list them?

0 Kudos

1,112 Views
converse
Senior Contributor V

'Pre-written libraries'

NXP have a bunch of libraries. These have evolved over time, and so depend on which MCU you are using. These are

CMSIS (basic, mostly provided by ARM, available for most MCU's)

LPCOpen (slightly more comprehensive, available for most older LPC family part (LPC17, LPC15, LPX11 etc). https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples:LPC-O...

MCUXpresso SDK (more comprehensive, available for most 'Kinetis' parts and newer LPC parts). https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-s...

 

 

0 Kudos

1,115 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Besides what Erich already suggested, you should probably look at some GDB commands as well. That's because some items depend on debugging information. Maybe take a look at "info functions", "info macros", "info sources", "info types", "whatis", "ptype", etc.

You might also want to check the information show in the section illustrated in the screenshot below:

lpcxpresso_supp_0-1627043015572.png

 

I hope this helps.

Greetings,
MCUXpresso IDE Support

 

0 Kudos