Skip to content

Commit b7ad79e

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 No more conf file required for stm32 targets when in MemoryMapped mode. Signed-off-by: Francois Ramu <[email protected]>
1 parent 04aa782 commit b7ad79e

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,5 +1,17 @@
11
sample:
22
name: SPI Flash Sample
3+
common:
4+
harness: console
5+
harness_config:
6+
type: multi_line
7+
ordered: true
8+
regex:
9+
- "Test 1: Flash erase"
10+
- "Flash erase succeeded!"
11+
- "Test 2: Flash write"
12+
- "Attempting to write 4 bytes"
13+
- "Data read matches data written. Good!!"
14+
depends_on: spi
315
tests:
416
sample.drivers.spi.flash:
517
tags:
@@ -11,14 +23,17 @@ tests:
1123
platform_exclude:
1224
- hifive_unmatched/fu740/s7
1325
- hifive_unmatched/fu740/u74
14-
harness: console
15-
harness_config:
16-
type: multi_line
17-
ordered: true
18-
regex:
19-
- "Test 1: Flash erase"
20-
- "Flash erase succeeded!"
21-
- "Test 2: Flash write"
22-
- "Attempting to write 4 bytes"
23-
- "Data read matches data written. Good!!"
24-
depends_on: spi
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)