1sample:
2  name: SPI Flash Sample
3common:
4  tags:
5    - spi
6    - flash
7  depends_on: spi
8tests:
9  sample.drivers.spi.flash:
10    filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
11      or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
12      or dt_compat_enabled("nordic,qspi-nor") or dt_compat_enabled("jedec,mspi-nor")
13      or dt_compat_enabled("nxp,xspi-nor")
14    platform_exclude:
15      - hifive_unmatched/fu740/s7
16      - hifive_unmatched/fu740/u74
17      - nrf54lm20dk/nrf54lm20a/cpuapp
18      - stm32n6570_dk/stm32n657xx/sb
19    harness: console
20    harness_config:
21      type: multi_line
22      ordered: true
23      regex:
24        - "Test 1: Flash erase"
25        - "Flash erase succeeded!"
26        - "Test 2: Flash write"
27        - "Attempting to write 4 bytes"
28        - "Data read matches data written. Good!!"
29  sample.drivers.spi.flash.stm32.memmap:
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    integration_platforms:
34      - stm32h573i_dk
35    extra_configs:
36      - CONFIG_STM32_MEMMAP=y
37    harness: console
38    harness_config:
39      type: multi_line
40      ordered: true
41      regex:
42        - "Test 1: Flash erase"
43        - "Flash erase succeeded!"
44        - "Test 2: Flash write"
45        - "Attempting to write 4 bytes"
46        - "Data read matches data written. Good!!"
47  sample.drivers.spi.flash.nrf54lm20:
48    platform_allow:
49      - nrf54lm20dk/nrf54lm20a/cpuapp
50    integration_platforms:
51      - nrf54lm20dk/nrf54lm20a/cpuapp
52    harness: console
53    harness_config:
54      fixture: external_flash
55      type: multi_line
56      ordered: true
57      regex:
58        - "Test 1: Flash erase"
59        - "Flash erase succeeded!"
60        - "Test 2: Flash write"
61        - "Attempting to write 4 bytes"
62        - "Data read matches data written. Good!!"
63