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

How to Debug the Makefiles of the ModusToolbox Project

How to Debug the Makefiles of the ModusToolbox Project

Charles_Lai
Moderator
Moderator 250 replies posted 100 solutions authored 100 replies posted
Moderator

How to Debug the Makefiles of the ModusToolbox Project

There are two ways to debug the makefiles of the ModusToolbox Project. One is generically supported by GNU Make and the other is provided by ModusToolbox.

1>>>

This is supported by GNU Make.

Append --debug[=options] to the make command, e.g.:

make program --debug=verbose

This parameter enables the GNU Make to print more information in addition to normal processing. The information shows which makefiles and sources were processed and how they were processed.

Alternative options are all, basic, verbose, implicit, jobs, makefile, none.

See: https://www.gnu.org/software/make/manual/html_node/Options-Summary.html

2>>>

This is provided by ModusToolbox.

Append VERBOSE=true to the make command, e.g.:

make program VERBOSE=true

This parameter enables the debug flag so the makefiles can print more messages for debugging. The messages reveal the insights of the ModusToolbox building system.

This is equivalent to setting variable VERBOSE to "true" or "1" in the makefile of your ModusToolbox project. See below:

Charles_Lai_0-1645606231553.png

 

See section 4.9.1 of ModusToolbox User Guide.

0 Likes