Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce SDMMC write_blocks #453

Merged
merged 2 commits into from
Sep 19, 2023
Merged

Commits on Sep 18, 2023

  1. Fix invalid read test logic in sdmmc example

    The read check is processing a buffer 10 blocks long. The check then
    reads data from the SD card 10 times to then report the speed of
    "Read 10 blocks at X bytes/second". The problem is that it actually
    reads 10*10 blocks.
    
    With this patch, read_blocks is used correctly to populate a continuous
    buffer.
    
    Signed-off-by: Petr Horacek <[email protected]>
    phoracek committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    89b90ad View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Introduce SDMMC write_blocks

    `write_block` needs to be called for every 512 bytes long block that is
    to be written to the SD card. Each of these calls requires the overhead
    of negotiating the write command.
    
    With this patch, `write_blocks` is introduced, mirroring the behavior
    of `read_block` and `read_blocks`. This new method helped me to improve
    write speed of the original 9492 kB/s to 66252 kB/s.
    
    Signed-off-by: Petr Horacek <[email protected]>
    phoracek committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    7277293 View commit details
    Browse the repository at this point in the history