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 /jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/lib/flash_patch/Kconfig:7

Included via Kconfig:8Kconfig.zephyr:9/jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/test_doc/_build/Kconfig.modules:1/jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/Kconfig.nrf:11/jenkins_workspace/workspace/nrfconnect-nrf_doc_v1.2-branch_2/nrf/lib/Kconfig:14

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.)