2017-04-05 11:11:22 +08:00
|
|
|
sample:
|
2017-12-11 08:47:26 +08:00
|
|
|
name: SPI Flash Sample
|
2017-04-05 11:11:22 +08:00
|
|
|
tests:
|
2019-12-02 01:29:43 +08:00
|
|
|
sample.drivers.spi.flash:
|
2023-05-08 19:37:42 +08:00
|
|
|
tags:
|
|
|
|
- spi
|
|
|
|
- flash
|
|
|
|
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
|
2024-03-14 19:44:55 +08:00
|
|
|
or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
|
2023-12-07 20:17:07 +08:00
|
|
|
or (dt_compat_enabled("nordic,qspi-nor") and CONFIG_NORDIC_QSPI_NOR)
|
2022-07-07 06:06:37 +08:00
|
|
|
platform_exclude: hifive_unmatched
|
2018-09-17 16:09:12 +08:00
|
|
|
harness: console
|
|
|
|
harness_config:
|
2023-01-04 03:08:27 +08:00
|
|
|
type: multi_line
|
|
|
|
ordered: true
|
|
|
|
regex:
|
|
|
|
- "Test 1: Flash erase"
|
|
|
|
- "Flash erase succeeded!"
|
|
|
|
- "Test 2: Flash write"
|
|
|
|
- "Attempting to write 4 bytes"
|
|
|
|
- "Data read matches data written. Good!!"
|
2017-12-11 08:47:26 +08:00
|
|
|
depends_on: spi
|