Dear all NXP Engineers and Experts,
I am new to NXP and MCUXpresso IDE.
My question are very simple -
My platform is MCUXpresso IDE v11.4 and Windows 10. Thanks.
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:
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
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
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?
'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...
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:
I hope this helps.
Greetings,
MCUXpresso IDE Support