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_FLASH_SIMULATOR_DOUBLE_WRITES

Allow program units to be programmed more than once

Type: bool

Help

If selected, writing to a non-erased program unit will succeed, otherwise, it will return an error.
Keep in mind that write operations can only pull bits to zero, regardless.

Direct dependencies

FLASH_SIMULATOR && FLASH

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At drivers/flash/Kconfig.simulator:25

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

Menu path: (Top) → Device Drivers → Flash hardware support → Flash simulator

config FLASH_SIMULATOR_DOUBLE_WRITES
    bool "Allow program units to be programmed more than once"
    depends on FLASH_SIMULATOR && FLASH
    help
      If selected, writing to a non-erased program unit will succeed, otherwise, it will return an error.
      Keep in mind that write operations can only pull bits to zero, regardless.

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