Skip to content

Commit c965767

Browse files
FRASTMkartben
authored andcommitted
samples: drivers: spi flash testing with stm32 in memmapped mode
Add a testcase to execute the samples/drivers/spi_flash on stm32 disco kits where the external flash is accessible in memory mapped mode : CONFIG_STM32_MEMMAP=y. In this testcase condition, the DMA transfer is not used but memcopy. limit to "st,stm32-Xspi-nor" compatible only. Signed-off-by: Francois Ramu <[email protected]>
1 parent a1466cf commit c965767

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
CONFIG_LOG=y
2-
CONFIG_STM32_MEMMAP=y
2+
CONFIG_FLASH_LOG_LEVEL_INF=y

samples/drivers/spi_flash/sample.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@ tests:
2424
- "Test 2: Flash write"
2525
- "Attempting to write 4 bytes"
2626
- "Data read matches data written. Good!!"
27+
sample.drivers.spi.flash.stm32.memmap:
28+
filter: dt_compat_enabled("st,stm32-qspi-nor")
29+
or dt_compat_enabled("st,stm32-ospi-nor")
30+
or dt_compat_enabled("st,stm32-xspi-nor")
31+
integration_platforms:
32+
- stm32h573i_dk
33+
extra_configs:
34+
- CONFIG_STM32_MEMMAP=y
35+
harness: console
36+
harness_config:
37+
type: multi_line
38+
ordered: true
39+
regex:
40+
- "Test 1: Flash erase"
41+
- "Flash erase succeeded!"
42+
- "Test 2: Flash write"
43+
- "Attempting to write 4 bytes"
44+
- "Data read matches data written. Good!!"
2745
sample.drivers.spi.flash.nrf54lm20:
2846
platform_allow:
2947
- nrf54lm20dk/nrf54lm20a/cpuapp

0 commit comments

Comments
 (0)