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:33<Zephyr>/modules/Kconfig:6<nRF>/doc/_build/kconfig/Kconfig.modules:2<nRF>/Kconfig.nrf:94<nRF>/lib/Kconfig:15

Menu path: (Top) → Modules → nrf (/home/runner/work/sdk-nrf/sdk-nrf/ncs/nrf) → 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.)