kendryte-standalone-demo icon indicating copy to clipboard operation
kendryte-standalone-demo copied to clipboard

How to use micro sd card? - sd_init function failed

Open EunseongBoo opened this issue 5 years ago • 4 comments

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 avatar Jul 30 '20 07:07 EunseongBoo

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

Forty-Bot avatar Sep 29 '20 17:09 Forty-Bot

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?

SKTT1Ryze avatar Oct 31 '20 13:10 SKTT1Ryze

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

Forty-Bot avatar Oct 31 '20 14:10 Forty-Bot

It works, thanks. @Forty-Bot

SKTT1Ryze avatar Nov 01 '20 01:11 SKTT1Ryze