Adds required Kconfig options for flash driver. Adds FatFS filesystem for flash disk. Fixes #14459. Note: As USB MSC does not support multiple disks (see #14937), only one (flash by default, modify CONFIG_MASS_STORAGE_DISK_NAME to "RAM" for RAM disk) will appear to host. Signed-off-by: Marcin Szymczyk <Marcin.Szymczyk@nordicsemi.no>
37 lines
1009 B
YAML
37 lines
1009 B
YAML
sample:
|
|
name: Mass Storage
|
|
tests:
|
|
sample.usb.mass_flash:
|
|
extra_args: OVERLAY_CONFIG="overlay-flash-disk.conf"
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
platform_whitelist: arduino_101
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
type: one_line
|
|
regex:
|
|
- "The device is put in USB mass storage mode."
|
|
sample.usb.mass_ram:
|
|
depends_on: usb_device gpio
|
|
platform_whitelist: reel_board frdm_k64f arduino_101
|
|
extra_args: OVERLAY_CONFIG="overlay-ram-disk.conf"
|
|
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."
|
|
test_mass_nrf52840_pca10056:
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
platform_whitelist: nrf52840_pca10056
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
type: one_line
|
|
regex:
|
|
- "The device is put in USB mass storage mode."
|