This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Disable log files

Hi all,

is there a possibility to disable all logs and other informations to inhibit the end user the access to relevant program data (p. e. for reengineering, ...). Further is it possible to generate an own configuration set for this version. An own configuration would be fine (one configuration for debugging, ... and one configuration for the final release version). We actually use CCS 3.3 with the TMS320C643 processor.

best regards

Martin

  • Please clarify some of your posting.

    There is no TMS320C643, so something is entered wrong. It probably does not matter much, since these are generic questions.

    The default for any CCS project is to have two configurations, Debug and Release, so it is not clear to me what you want differently.

    What is an "own" configuration? If you mean you want to make your own custom configuration, you can certainly do this or just change the existing configurations.

    The cleanest way to inhibit logs would be to use

    #ifdef _DEBUG
    LOG_printf, etc.
    #endif

    and put this around every log operation in your code. This way anything you consider "logs and other information" can be inhibited for the Release configuration. You could examine the .map file to make sure the LOG_printf and any other debug function is not included in the final build.