Skip to content

Issues with SD card #38

@amirgon

Description

@amirgon

I've followed the wiki to attach an SD card.

When calling sdmmc_card_init slot=1, host=SDMMC_HOST_DEFAULT() I'm getting:

E (37117) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (47247) sdmmc_req: sdmmc_host_wait_for_event returned 0x107

I've tried increasing host.command_timeout_ms up to 10000, didn't help.

Looking at the debugger, it looks like sdmmc_host_wait_for_event is waiting to some interrupt that is never recieved on s_event_queue.
On QEMU I can see non-implemented reads being sent. For example, sdmmc_io_reset sends a command that is received on the QEMU side by dwc_sdmmc_read with offset 80 but unhandled, I'm not sure whether it's related or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions