CONFIG_SPI_FLASH_AT45_USE_READ_MODIFY_WRITE

Use Read-Modify-Write command in flash_write()

Type: bool

Help

Use the Read-Modify-Write command (opcode 0x58) instead of the default
Main Memory Program without Built-In Erase (opcode 0x02). This allows
writing of data without prior erasing of corresponding pages.

Direct dependencies

SPI_FLASH_AT45 && FLASH

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At <Zephyr>/drivers/flash/Kconfig.at45:22

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:42<Zephyr>/drivers/Kconfig:62<Zephyr>/drivers/flash/Kconfig:63

Menu path: (Top) → Device Drivers → Flash hardware support → AT45 family flash driver

config SPI_FLASH_AT45_USE_READ_MODIFY_WRITE
    bool "Use Read-Modify-Write command in flash_write()"
    default y
    depends on SPI_FLASH_AT45 && FLASH
    help
      Use the Read-Modify-Write command (opcode 0x58) instead of the default
      Main Memory Program without Built-In Erase (opcode 0x02). This allows
      writing of data without prior erasing of corresponding pages.

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