Skip to content

SDcard driver fail to initialize #121

@akaganeite

Description

@akaganeite

hi, im running a rust version of your SDcard driver(sd.c) code on raspiberry pi 3b +. But failed in sd.c, line 329
sd_cmd(CMD_SEND_SCR,0); if(sd_err) return sd_err; if(sd_int(INT_READ_RDY)) return SD_TIMEOUT;
the sd_int reads the interrupt flags. The flags read by sd_int(INT_READ_RDY) is 0x208000,which indicates DCRC_ERR according to the bcm-2835 manual.
I was wondering if you could give me some advice on how to solve or identify the source of this initialization failure.
截屏2024-11-13 17 04 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions