Introduce new USB Mass Storage Bulk-Only Transport implementation written from scratch. Main goal behind new implementation was to separate USB and SCSI parts as clearly as possible. Limited set of SCSI disk commands is implemented in separate source code file that is internal to USB device stack. While it should be possible to use the SCSI implementation by other components there is currently no other user besides USB MSC and therefore SCSI header is kept private. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
126 lines
3.5 KiB
YAML
126 lines
3.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: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "No file system selected"
|
|
- "The device is put in USB mass storage mode."
|
|
sample.usb_device_next.mass_ram_none:
|
|
min_ram: 64
|
|
depends_on: usb_device
|
|
platform_allow: nrf52840dk_nrf52840 frdm_k64f
|
|
extra_args: CONF_FILE="usbd_next_prj.conf"
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "No file system selected"
|
|
- "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: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "End of files"
|
|
- "The device is put in USB mass storage mode."
|
|
sample.usb.mass_flash_fatfs:
|
|
min_ram: 32
|
|
modules:
|
|
- fatfs
|
|
depends_on: usb_device
|
|
filter: dt_compat_enabled("nordic,qspi-nor")
|
|
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp adafruit_feather_nrf52840
|
|
integration_platforms:
|
|
- nrf52840dk_nrf52840
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
- CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "End of files"
|
|
- "The device is put in USB mass storage mode."
|
|
sample.usb_device_next.mass_flash_fatfs:
|
|
min_ram: 32
|
|
modules:
|
|
- fatfs
|
|
depends_on: usb_device
|
|
filter: dt_compat_enabled("nordic,qspi-nor")
|
|
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp adafruit_feather_nrf52840
|
|
integration_platforms:
|
|
- nrf52840dk_nrf52840
|
|
extra_args: CONF_FILE="usbd_next_prj.conf"
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
- CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "End of files"
|
|
- "The device is put in USB mass storage mode."
|
|
sample.usb.mass_sdhc_fatfs:
|
|
min_ram: 32
|
|
modules:
|
|
- fatfs
|
|
depends_on: usb_device sdhc
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
- CONFIG_APP_MSC_STORAGE_SDCARD=y
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
fixture: fixture_sdcard
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "End of files"
|
|
- "The device is put in USB mass storage mode."
|
|
sample.usb.mass_flash_littlefs:
|
|
modules:
|
|
- littlefs
|
|
min_ram: 32
|
|
depends_on: usb_device
|
|
filter: dt_compat_enabled("nordic,qspi-nor")
|
|
platform_allow: nrf52840dk_nrf52840 nrf5340dk_nrf5340_cpuapp adafruit_feather_nrf52840
|
|
integration_platforms:
|
|
- nrf52840dk_nrf52840
|
|
extra_configs:
|
|
- CONFIG_LOG_DEFAULT_LEVEL=3
|
|
- CONFIG_APP_MSC_STORAGE_FLASH_LITTLEFS=y
|
|
tags: msd usb
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "End of files"
|
|
- "The device is put in USB mass storage mode."
|