Add a special testcase to test any stm32 target The expected flash size is given by the config FLASH_SIZE (in bytes) and stm32 flash driver API function should return the same value Do not run on the stm32wb55 nucleo as 216K are reserved among the 1MB (only 808K declared but mcu has 1MB) Signed-off-by: Francois Ramu <francois.ramu@st.com>
19 lines
628 B
Plaintext
19 lines
628 B
Plaintext
# Copyright (c) 2024, Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Device/scenario dependent information that is not available in
|
|
# other ways.
|
|
|
|
DT_CHOSEN_Z_FLASH := zephyr,flash
|
|
|
|
config TEST_DRIVER_FLASH_SIZE
|
|
int "Size of flash device under test"
|
|
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0) if SOC_FAMILY_STM32
|
|
default -1
|
|
help
|
|
Expected flash device size the test will validate against. If the flash driver does not
|
|
support the get_size() API, leave this set as -1 to skip the test.
|
|
For the STM32 devices, the flash size is direclty given by the soc DTSI.
|
|
|
|
source "Kconfig.zephyr"
|