Skip to content

samples: usb: add usb msc sample app with sd card support#427

Open
MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
MaheshAvula-Alifsemi:usb_device_msc
Open

samples: usb: add usb msc sample app with sd card support#427
MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
MaheshAvula-Alifsemi:usb_device_msc

Conversation

@MaheshAvula-Alifsemi
Copy link
Copy Markdown
Contributor

Added USB device mass storage class sample application support,integrated SD card support to be used as the media device for the MSC.

USB MSC allows the device to communicate with a host system, enabling file operations (read/write) from the SD card.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an Alif-focused USB Mass Storage Class (MSC) sample configuration that uses an SD card as the backing storage, including required board overlays and linker-script retention for MSC endpoint buffers.

Changes:

  • Retain MSC USB endpoint net_buf pool in Alif non-secure linker scripts.
  • Add a Zephyr snippet to apply board-specific DT overlays for Alif DK boards.
  • Add new Alif board overlays and a sample config enabling SD/MMC + FATFS for MSC storage.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
soc/alif/ensemble/common/alif_ns.ld Keeps MSC endpoint pool section to prevent it being garbage-collected.
soc/alif/balletto/common/alif_ns.ld Same KEEP addition for MSC endpoint pool as ensemble.
samples/subsys/usb/mass/snippets/alif-msc-sd/snippet.yml Adds snippet mapping Alif boards to DT overlay files.
samples/subsys/usb/mass/boards/alif_usb.overlay New common overlay intended to enable NS + USB nodes.
samples/subsys/usb/mass/boards/alif_msc_sd.conf New Kconfig fragment enabling SD card + FATFS + SDHC settings.
samples/subsys/usb/mass/boards/alif_e4_e8_dk.overlay New board overlay enabling USB/NS and SDHC(+gpio) for E4/E8 DK.
samples/subsys/usb/mass/boards/alif_e3_e7_dk.overlay New board overlay enabling USB/NS and SDHC for E3/E7 DK.
samples/subsys/usb/mass/boards/alif_e1c_dk.overlay New board overlay enabling USB/NS and SDHC for E1C DK.
samples/subsys/usb/mass/boards/alif_b1_dk.overlay New board overlay enabling USB/NS and SDHC(+gpio) for B1 DK.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Added USB device mass storage class sample application
support,integrated SD card support to be used as the
media device for the MSC.

USB MSC allows the device to communicate with a host system,
enabling file operations (read/write) from the SD card.

Signed-off-by: Mahesh Avula <mahesh.avula@alifsemi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants