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

How to use micro sd card? - sd_init function failed #44

Open
EunseongBoo opened this issue Jul 30, 2020 · 4 comments
Open

How to use micro sd card? - sd_init function failed #44

EunseongBoo opened this issue Jul 30, 2020 · 4 comments

Comments

@EunseongBoo
Copy link

EunseongBoo commented Jul 30, 2020

Hello, I'm trying to read some files from micro sd card on Sipeed MAix Go Suit for RISC-V AI+IoT board.
However, the below errors occurred in sd_init function when I build and execute the sd_card demo in the repo.

--- forcing DTR inactive
--- forcing RTS inactive
--- Miniterm on /dev/ttyUSB1 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
SD_CMD8 is FF
sd init 255
SD card err
W (22141437268) SYSCALL: sys_exit called by core 0 with 0x1

My questions are:

  1. Does the sd card demo not support micro sd cards?
  2. Are there any other solutions to read micro sd cards?

Thanks!

@EunseongBoo EunseongBoo changed the title How to use micro sd card? How to use micro sd card? - sd_init function failed Jul 30, 2020
@Forty-Bot
Copy link

Did you adjust the pins in main.c? AFAIK all the demos here assume they run on a KD233.

@SKTT1Ryze
Copy link

I have the same problem that the sdcard init failed.
And for the @Forty-Bot 's answer, can you give more details about adjusting the pins in main.c?

@Forty-Bot
Copy link

just set the pins in io_mux_init to what they should be for your board

@SKTT1Ryze
Copy link

It works, thanks. @Forty-Bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants