fdcavalcanti opened a new pull request, #16602:
URL: https://github.com/apache/nuttx/pull/16602

   ## Summary
   
   * documentation: update docs on SDMMC for ESP32|S2|S3
   * boards/xtensa: add SDMMC SPI defconfig to ESP32|S2|S3 boards
   * boards/xtensa/esp32: use common board source for SDMMC
   * boards/xtensa: support SDMMC over SPI on ESP32-S2|S3
   
   This PR improves SDMMC source code on Espressif Xtensa devices in the 
following manner:
   
   - Moves duplicated code from each board to a common directory, simplifying 
feature maintenance.
   - Adds support for SDMMC over SPI for ESP32S2 and ESP32S3 boards.
   - Creates defconfig said boards.
   - Updates the documentation with basic mounting and usage instructions.
   
   ## Impact
   
   General impact is added support for SDMMC over SPI.
   
   Impact on user: No.
   
   Impact on build: No.
   
   Impact on hardware: No.
   
   Impact on documentation: Yes. Adds instructions for `sdmmc_spi` defconfig 
for ESP32, ESP32S2 and ESP32S3.
   
   Impact on security: No.
   
   Impact on compatibility: Yes. On `esp32-wrover-kit` and `esp32-lyrat` the 
defconfig has been renamed from `mmcsdspi` to `sdmmc_spi`.
   
   ## Testing
   
   The following example can be replicated with ESP32, S2 and S3 devices.
   
   ### Building
   - ./tools/configure.sh esp32s3-devkit:sdmmc_spi
   - make and flash
   
   ### Running
   Check mmcsd0 is available:
   ```
   nsh> ls /dev
   /dev:
    console
    mmcsd0
    null
    spi2
    ttyS0
    zero
   ```
   
   Then, mount FAT FS and SD Card content should appear. Read and write 
possible through echo and cat commands.
   
   ```
   nsh> mount -t vfat /dev/mmcsd0 /mnt
   nsh> ls /mnt
   /mnt:
    hello.txt
   nsh> cat /mnt/hello.txt
   Hello World
   nsh> 
   ```
   
   ### Results
   
   It is possible to read and write data to the SD Card.
   


-- 
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]

Reply via email to