CONFIG_PERCEPIO_RECORDER_TRC_CFG_USE_TRACE_ASSERT

Use Trace Assert

Type: bool

Help

If this is one (1), the TRACE_ASSERT macro (used at various locations in the
            trace recorder) will verify that a relevant condition is true.
            If the condition is false, prvTraceError() will be called, which stops the
            recording and stores an error message that is displayed when opening the
            trace in Tracealyzer.

            This is used on several places in the recorder code for sanity checks on
            parameters. Can be switched off to reduce the footprint of the tracing, but
            we recommend to have it enabled initially.

Direct dependencies

PERCEPIO_TRC_RECORDER_MODE_SNAPSHOT && PERCEPIO_TRC_RECORDER_MODE_SNAPSHOT && PERCEPIO_TRACERECORDER

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At /home/runner/work/sdk-nrf/sdk-nrf/ncs/modules/debug/TraceRecorder/kernelports/Zephyr/Kconfig:720

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:23<Zephyr>/modules/Kconfig:6<BuildDir>/kconfig/Kconfig.modules:56

Menu path: (Top) → Modules → TraceRecorder (/home/runner/work/sdk-nrf/sdk-nrf/ncs/modules/debug/TraceRecorder) → Percepio Trace Recorder → Snapshot Configuration

config PERCEPIO_RECORDER_TRC_CFG_USE_TRACE_ASSERT
    bool "Use Trace Assert"
    default y
    depends on PERCEPIO_TRC_RECORDER_MODE_SNAPSHOT && PERCEPIO_TRC_RECORDER_MODE_SNAPSHOT && PERCEPIO_TRACERECORDER
    help
      If this is one (1), the TRACE_ASSERT macro (used at various locations in the
                  trace recorder) will verify that a relevant condition is true.
                  If the condition is false, prvTraceError() will be called, which stops the
                  recording and stores an error message that is displayed when opening the
                  trace in Tracealyzer.

                  This is used on several places in the recorder code for sanity checks on
                  parameters. Can be switched off to reduce the footprint of the tracing, but
                  we recommend to have it enabled initially.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)