跳转至

13.usb_mass

功能:usb大容量设备 挂载ram或外部sdram, 通过overlay选择

1
2
3
  west build -p always -b art_pi -d build 13.usb_mass_ram -- \
  -DCONFIG_BOOTLOADER_MCUBOOT=y \
  -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE="\"$HOME/zephyrproject/bootloader/mcuboot/root-rsa-2048.pem\""

外部sdram演示

image-20250925014858145

image-20250925014807425

参考

https://docs.zephyrproject.org/latest/samples/subsys/usb/mass/README.html

https://docs.zephyrproject.org/latest/build/dts/api/bindings/misc/zephyr%2Cflash-disk.html

https://docs.zephyrproject.org/latest/build/dts/api/bindings/disk/zephyr%2Cram-disk.html

https://docs.zephyrproject.org/3.7.0/connectivity/usb/device_next/api/usbd.html