CONFIG_SOC_FLASH_STM32

STM32 flash driver

Type: bool

Help

Enable STM32F0x, STM32F3x, STM32F4x, STM32F7x, STM32L4x, STM32WBx or STM32G0x series flash driver.

Direct dependencies

(SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32G0X) && SOC_FAMILY_STM32 && FLASH

(Includes any dependencies from ifs and menus.)

Defaults

  • y

Kconfig definition

At drivers/flash/Kconfig.stm32:11

Included via Kconfig:10Kconfig.zephyr:40drivers/Kconfig:56drivers/flash/Kconfig:62

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

menuconfig SOC_FLASH_STM32
    bool "STM32 flash driver"
    default y
    select FLASH_HAS_DRIVER_ENABLED
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32F0X
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32F3X
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32G0X
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32F4X
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32F7X
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32L4X
    select FLASH_PAGE_LAYOUT if SOC_SERIES_STM32WBX
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32F0X
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32F3X
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32G0X
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32F4X
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32F7X
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32L4X
    select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32WBX
    depends on (SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32G0X) && SOC_FAMILY_STM32 && FLASH
    help
      Enable STM32F0x, STM32F3x, STM32F4x, STM32F7x, STM32L4x, STM32WBx or STM32G0x series flash driver.

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