This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_CHECK_BEFORE_READING

Verify area before reading it

Type: bool

Help

Do a margin check flash command before reading an area.
This feature prevents erroneous/forbidden reading. Some ECC enabled
devices will crash when reading an erased or wrongly programmed area.

Direct dependencies

SOC_FLASH_MCUX && FLASH

(Includes any dependencies from ifs and menus.)

Default

Kconfig definition

At drivers/flash/Kconfig.mcux:18

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:60drivers/flash/Kconfig:71

Menu path: (Top) → Device Drivers → Flash hardware support → MCUX flash shim driver

config CHECK_BEFORE_READING
    bool "Verify area before reading it"
    default y if SOC_SERIES_LPC55XXX
    depends on SOC_FLASH_MCUX && FLASH
    help
      Do a margin check flash command before reading an area.
      This feature prevents erroneous/forbidden reading. Some ECC enabled
      devices will crash when reading an erased or wrongly programmed area.

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