CONFIG_LOG_BACKEND_SWO_FREQ_HZ

Set SWO output frequency

Type: int

Help

Set SWO output frequency. Value 0 will select maximum frequency supported by the given MCU. Not all debug probes support high frequency SWO operation. In this case the frequency has to be set manually.

SWO value defined by this option will be configured at boot. Most SWO viewer programs will configure SWO frequency when attached to the debug probe. Such configuration will persist only until the device reset. To ensure flawless operation the frequency configured here and by the SWO viewer program has to match.

Direct dependencies

LOG_BACKEND_SWO && LOG

(Includes any dependencies from ifs and menus.)

Defaults

  • 0

Kconfig definition

At subsys/logging/Kconfig:251

Included via Kconfig:10Kconfig.zephyr:44subsys/Kconfig:20

Menu path: (Top) → Logging → Enable Serial Wire Output (SWO) backend

config LOG_BACKEND_SWO_FREQ_HZ
    int "Set SWO output frequency"
    default 0
    depends on LOG_BACKEND_SWO && LOG
    help
      Set SWO output frequency. Value 0 will select maximum frequency
      supported by the given MCU. Not all debug probes support high
      frequency SWO operation. In this case the frequency has to be set
      manually.

      SWO value defined by this option will be configured at boot. Most SWO
      viewer programs will configure SWO frequency when attached to the
      debug probe. Such configuration will persist only until the device
      reset. To ensure flawless operation the frequency configured here and
      by the SWO viewer program has to match.

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