cancel
Showing results for 
Search instead for 
Did you mean: 

Resource Library

How to Debug the Makefiles of the ModusToolbox Project

Charles_Lai
Moderator
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.

See section 4.9 of the ModusToolbox User Guide: https://www.cypress.com/file/520251/download

0 Likes
Version history
Revision #:
3 of 3
Last update:
‎Sep 12, 2021 05:42 AM
Updated by: