Fix #507 - add missing sdmmc_host_get_dma_info for sdcard driver #508
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.
Submission Checklist 📝
cargo fmtcommand to ensure that all changed code is formatted correctly.CHANGELOG.mdin the proper section.cargo clippycommand to ensure that all changed code passes latest Clippy nightly lints.Pull Request Details 📖
Fix #507 by adding the missing
sdmmc_host_get_dma_infofunction pointer for the SD card host driverDescription
The
get_dma_infofunction pointer here:esp-idf-hal/src/sd.rs
Lines 384 to 390 in 8a11ef4
supposes to be pointing to
sdmmc_host_get_dma_infobased on what I saw from the SDMMC_HOST_DEFAULT macro. Without this func pointer, the first time calling it will crash due to calling a null pointer from here:https://github.com/espressif/esp-idf/blob/d7d3eb3f0a99f069a7814b3c0824626383e4a511/components/sdmmc/sdmmc_sd.c#L95
Testing
Adding patch pointing hal repo to my PR this problem is gone:
output:
you can also see the branch I created in the reproducing repo:
https://github.com/LaunchPlatform/esp-idf-hal-sd-get-info-dma-bug/tree/with-fix