Skip to content

Commit 9ecb162

Browse files
committed
samples: drivers: spi flash testcase for stm32 in MemoryMapped mode
Add a special testcase for running the samples/drivers/spi_flash on stm32 targets with MemoryMapped mode on external quad/octo/ spi NOR Signed-off-by: Francois Ramu <[email protected]>
1 parent b76f3de commit 9ecb162

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

samples/drivers/spi_flash/boards/stm32h573i_dk.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
sample:
22
name: SPI Flash Sample
3-
tests:
4-
sample.drivers.spi.flash:
5-
tags:
6-
- spi
7-
- flash
8-
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
9-
or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
10-
or dt_compat_enabled("nordic,qspi-nor") or dt_compat_enabled("jedec,mspi-nor")
11-
platform_exclude:
12-
- hifive_unmatched/fu740/s7
13-
- hifive_unmatched/fu740/u74
3+
common:
144
harness: console
155
harness_config:
166
type: multi_line
@@ -22,3 +12,28 @@ tests:
2212
- "Attempting to write 4 bytes"
2313
- "Data read matches data written. Good!!"
2414
depends_on: spi
15+
tests:
16+
sample.drivers.spi.flash:
17+
tags:
18+
- spi
19+
- flash
20+
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
21+
or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
22+
or dt_compat_enabled("nordic,qspi-nor") or dt_compat_enabled("jedec,mspi-nor")
23+
platform_exclude:
24+
- hifive_unmatched/fu740/s7
25+
- hifive_unmatched/fu740/u74
26+
sample.drivers.spi.flash.stm32.memmap:
27+
tags:
28+
- spi
29+
- flash
30+
filter: dt_compat_enabled("st,stm32-qspi-nor")
31+
or dt_compat_enabled("st,stm32-ospi-nor")
32+
or dt_compat_enabled("st,stm32-xspi-nor")
33+
extra_configs:
34+
- CONFIG_STM32_MEMMAP=y
35+
integration_platforms:
36+
- stm32h573i_dk
37+
platform_allow:
38+
- stm32h573i_dk
39+
- b_u585i_iot02a

0 commit comments

Comments
 (0)