0 Replies Latest reply on Oct 6, 2019 6:44 AM by JoMe_264151 Branched from an earlier discussion.

    Re: Use Debug/Release to condition the inclusion or activation of top level design components? Possible? How?


      Although there is a #define DEBUG made when compiling in debug mode there is no choice to in- or exclude a component based on that.

      The reason for that is: the fitter process runs before any C-Language is compiled and so does not "see" any external symbols.




      You can do it the other way: In each ComponentName.h file a symbol is #defined which you may use for conditional compiling.  So you just need todisable your bootloadable (and bootloader when you use both) in the Top>>Design schematic.