Skip to content

Commit 231b663

Browse files
nordic-seglcfriedt
authored andcommitted
samples: drivers: spi_flash: Enable sample on nrf54lm20dk
Add overlay required to run the sample on nrf54lm20dk/nrf54lm20a/cpuapp. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent e314eb6 commit 231b663

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&mx25r64 {
8+
status = "okay";
9+
};

samples/drivers/spi_flash/sample.yaml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
sample:
22
name: SPI Flash Sample
3+
common:
4+
tags:
5+
- spi
6+
- flash
7+
depends_on: spi
38
tests:
49
sample.drivers.spi.flash:
5-
tags:
6-
- spi
7-
- flash
810
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
911
or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
1012
or dt_compat_enabled("nordic,qspi-nor") or dt_compat_enabled("jedec,mspi-nor")
1113
platform_exclude:
1214
- hifive_unmatched/fu740/s7
1315
- hifive_unmatched/fu740/u74
16+
- nrf54lm20dk/nrf54lm20a/cpuapp
1417
harness: console
1518
harness_config:
1619
type: multi_line
@@ -21,4 +24,19 @@ tests:
2124
- "Test 2: Flash write"
2225
- "Attempting to write 4 bytes"
2326
- "Data read matches data written. Good!!"
24-
depends_on: spi
27+
sample.drivers.spi.flash.nrf54lm20:
28+
platform_allow:
29+
- nrf54lm20dk/nrf54lm20a/cpuapp
30+
integration_platforms:
31+
- nrf54lm20dk/nrf54lm20a/cpuapp
32+
harness: console
33+
harness_config:
34+
fixture: external_flash
35+
type: multi_line
36+
ordered: true
37+
regex:
38+
- "Test 1: Flash erase"
39+
- "Flash erase succeeded!"
40+
- "Test 2: Flash write"
41+
- "Attempting to write 4 bytes"
42+
- "Data read matches data written. Good!!"

0 commit comments

Comments
 (0)