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.

  • Resolved

[FAQ] How do I enable/disable asserts from TI-RTOS (SYS/BIOS)?

Mastermind 26560 points

Replies: 2

Views: 58

I understand that SYS/BIOS has internal asserts that can be enabled or disabled.  How do I enable/disable them?

  • Runtime Assert checking is very useful during application development. However, there is a performance and memory penalty associated with asserts. Once your application is up and running to your satisfaction, you can remove the runtime Assert checking code from the SYS/BIOS library by adding the following line to your config script:

    BIOS.assertsEnabled = false;

    Similarly, to enable Asserts use:

    BIOS.assertsEnabled = true;

    Note that this configuration parameter only applies when you are using the custom SYS/BIOS build option (BIOS.libType = BIOS.LibType_Custom), which was added in SYS/BIOS 6.32.01.

  • In reply to ScottG:

    For SimpleLink SDK users, the "release" kernel project has SYS/BIOS asserts disabled. The "debug" kernel project has them enabled. Please refer to the SimpleLink SDK User Guide for more details on the differences between the two kernel projects (and how to switch between them).

    For CC13xx/CC26xx users, if you are using the kernel in ROM, you cannot enable SYS/BIOS asserts. You must either use the "debug" kernel project or use the kernel in flash.

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.