CONFIG_DISABLE_FLASH_PATCH

Disable Cortex-M4 Flash Patch capabilities

Type: bool

Help

The flash patch can be used by malicious code to circumvent secure boot checks. Note that disabling flash patching also disables breakpoints.

Direct dependencies

SOC_NRF52840 && REBOOT

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At <nRF>/lib/flash_patch/Kconfig:7

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:9<BuildDir>/Kconfig/Kconfig.modules:1<nRF>/Kconfig.nrf:26<nRF>/lib/Kconfig:15

Menu path: (Top) → Modules → Nordic nRF Connect → Libraries

config DISABLE_FLASH_PATCH
    bool "Disable Cortex-M4 Flash Patch capabilities"
    depends on SOC_NRF52840 && REBOOT
    help
      The flash patch can be used by malicious code to circumvent secure
      boot checks. Note that disabling flash patching also disables
      breakpoints.

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