mirror of
https://github.com/espressif/esp-idf.git
synced 2026-07-17 08:23:09 +03:00
Guard start_command_read_blocks against cards that place TOKEN_BLOCK_START so early that extra_data_size exceeds the bytes expected on the current iteration. Without this check, the unsigned subtraction for will_receive underflows and propagates into memset, SPI transaction length, and memcpy counts against the fixed 516-byte block buffer.
SDSPI Host Driver
SD Host side related components are:
sdmmcesp_driver_sdmmcesp_driver_sdspi(current component)
For relationship and dependency among these components, see SD Host Side Related Component Architecture.
esp_driver_sdspi components is a driver based on ESP GPSPI master driver to help you:
- do SD transactions (under SDSPI mode) via ESP GPSPI peripheral.
- tune ESP GPSPI hardware configurations, such as clock frequency, bus width, etc.
- ...
You can
- use this driver to implement
sdmmcprotocol interfaces - directly use
esp_driver_sdspiAPIs
to communicate with SD slave devices under SDSPI mode.