zephyr/samples/subsys/usb/mass/sample.yaml
Johann Fischer cec040503b samples: mass: rework disk and fs configuration
USB MSC sample has been expanded over time. Config overlays
for RAM disk and flash disks were added. Board specific overlays
followed. It was overlooked that they forced a specific
configuration for the nrf52840dk_nrf52840 board,
even if it was not explicitly desired
(for example RAM-disk). This also caused strange behaviour
during automatic MSC USB3CV tests (which explicit selects RAM-disk)
so that nrf5340dk_nrf5340_cpuapp board passed test
but nrf52840dk_nrf52840 failed.

Rework disk and file system configuration, and initialization
code, allow to use FAT file system on top of RAM disk.

This sample can be built with none or one of two supported
file systems, LittleFS or FATFS. Disk subsystem can be flash
or RAM based. LittleFS only works with flash disk.
There are four useful possibilities:
- RAM disk without any file system for testing (default)
- RAM disk with FAT file system
- flash disk with FAT file system
- flash disk with LittleFS
Flash disk configurations is only available (as before) for
nordic,qspi-nor compatible, but only need the device tree overlay
per platform without a config overlay.

This path also revises test cases.
Remove invalid "flash" tag from depends_on key.
Remove unnecessary gpio tag and exclude native platform.

Resolves: #26275

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2020-12-02 11:50:11 +01:00

55 lines
1.5 KiB
YAML

sample:
name: Mass Storage
tests:
sample.usb.mass_ram_none:
min_ram: 64
depends_on: usb_device
platform_exclude: native_posix native_posix_64
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
tags: msd usb
harness: console
harness_config:
type: one_line
regex:
- "The device is put in USB mass storage mode."
sample.usb.mass_ram_fat:
min_ram: 128
depends_on: usb_device
platform_exclude: native_posix native_posix_64
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
- CONFIG_APP_MSC_STORAGE_RAM=y
tags: msd usb
harness: console
harness_config:
type: one_line
regex:
- "The device is put in USB mass storage mode."
sample.usb.mass_flash_fatfs:
min_ram: 32
depends_on: usb_device
filter: dt_compat_enabled("nordic,qspi-nor")
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
- CONFIG_APP_MSC_STORAGE_FLASH_LITTLEFS=y
tags: msd usb
harness: console
harness_config:
type: one_line
regex:
- "The device is put in USB mass storage mode."
sample.usb.mass_flash_littlefs:
min_ram: 32
depends_on: usb_device
filter: dt_compat_enabled("nordic,qspi-nor")
extra_configs:
- CONFIG_LOG_DEFAULT_LEVEL=3
- CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
tags: msd usb
harness: console
harness_config:
type: one_line
regex:
- "The device is put in USB mass storage mode."