samples: usb: add usb msc sample app with sd card support#427
Open
MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
Open
samples: usb: add usb msc sample app with sd card support#427MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
MaheshAvula-Alifsemi wants to merge 1 commit intoalifsemi:mainfrom
Conversation
2d6ccec to
d7d4f86
Compare
AnttiKauppila-AlifSemi
approved these changes
Mar 19, 2026
There was a problem hiding this comment.
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>
d7d4f86 to
7a280c6
Compare
sudhir-alifsemi
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.