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

cross mob

How to Debug the Makefiles of the ModusToolbox Project

How to Debug the Makefiles of the ModusToolbox Project

Charles_Lai
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 10 questions asked

There are two ways to debug the makefiles of the ModusToolbox Project:

 

- Generically supported by GNU Make

- Provided by ModusToolbox

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: Options Summary

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.

937 Views