JianyuWang0623 opened a new pull request, #18535: URL: https://github.com/apache/nuttx/pull/18535
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Add SD card (SDMMC) defconfig for the lckfb-szpi-esp32s3 board. The lckfb-szpi-esp32s3 board connects a MicroSD card slot via the ESP32-S3 SDMMC peripheral in 1-bit mode with the following pin mapping: | Pin | GPIO | |-----|------| | CLK | GPIO47 | | CMD | GPIO48 | | D0 | GPIO21 | Pin assignment is based on the board schematic and vendor example at https://wiki.lckfb.com/zh-hans/szpi-esp32s3/. The defconfig is derived from the existing `nsh` config for this board, with the following additions: - ESP32-S3 SDMMC driver (`CONFIG_ESP32S3_SDMMC`) - FAT filesystem with Long File Name support (`CONFIG_FS_FAT`, `CONFIG_FAT_LFN`) - On-device FAT formatting utility (`CONFIG_FSUTILS_MKFATFS`) - 1-bit SDIO width (`CONFIG_SDIO_WIDTH_D1_ONLY`) The existing `esp32s3-korvo-2:sdmmc` defconfig was used as a reference for MMCSD tuning options (`CONFIG_MMCSD_MULTIBLOCK_LIMIT=128`, `CONFIG_MMCSD_CHECK_READY_STATUS_WITHOUT_SLEEP`). Board documentation (`index.rst`) is also updated with the sdmmc configuration section including pin mapping, build commands, and usage examples. ## Impact - New defconfig only — no source code changes. - No impact on existing configurations or other boards. - Documentation updated for the lckfb-szpi-esp32s3 board. ## Testing Host machine: Linux x86_64 Board: lckfb-szpi-esp32s3 (ESP32-S3-WROOM-1-N16R8) Build and flash: ``` $ ./tools/configure.sh lckfb-szpi-esp32s3:sdmmc $ make -j8 $ make flash -j8 ESPTOOL_PORT=/dev/ttyUSB0 ``` Test log (serial console at 115200 baud): ``` NuttShell (NSH) NuttX-12.12.0 nsh> ls /dev/mmcsd* /dev/mmcsd1 nsh> mkfatfs -F 32 /dev/mmcsd1 nsh> mkdir -p /mnt/sd nsh> mount -t vfat /dev/mmcsd1 /mnt/sd nsh> df Block Number Size Blocks Used Available Mounted on 0 0 0 0 /proc 512 124702720 0 124702720 /mnt/sd nsh> echo "hello" > /mnt/sd/test.txt nsh> cat /mnt/sd/test.txt hello nsh> uname -a > /mnt/sd/uname.txt nsh> cat /mnt/sd/uname.txt NuttX 12.12.0 043c1a374b1 Mar 13 2026 12:35:42 xtensa lckfb-szpi-esp32s3 nsh> ls /mnt/sd /mnt/sd: test.txt uname.txt ``` SD card detected, formatted with FAT32, mounted, read/write verified. Long filenames display correctly with `CONFIG_FAT_LFN=y`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
