Skip to content

samples: subsys: usb: mass: Use &flash0 storage_partition for USB mass storage #37818

Answered by jfischer-no
joaodullius asked this question in Q&A
Discussion options

You must be logged in to vote

From the Kconfig, it appears that it only supports RAM, NAND and SD.

No, RAM, NAND, SD are predefined strings to identify disk by ELMFAT module.

samples/subsys/usb/mass supports only NOR flash connected over QSPI on few nRF boards, see
https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/subsys/usb/mass/boards/adafruit_feather_nrf52840.overlay for example.

The reason to not support internal flash in the sample is that storage partitions are usually to small and internal flash (page erase times) to slow, cumbersome configuration... (see also #33657).

You can change the sample like:

diff --git a/samples/subsys/usb/mass/Kconfig b/samples/subsys/usb/mass/Kconfig
index 5dceba3b34..…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by joaodullius
Comment options

You must be logged in to vote
2 replies
@joaodullius
Comment options

@de-nordic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #37772 on August 19, 2021 23:05.