Page 1 of 1

element_sdcard_mp3 example how to change SPI SDcard configuration

Posted: Thu Dec 31, 2020 5:37 pm
by ihouses
Hi,

I am very new in the ADF framework and now I am working with the element_sdcard_mp3 ADF example. By checking the typical hardware support like lyrat_v4_3 I see that the SD card is using multiple data lines, I would like to use just a simple SPI, but I can not find were I can do this. I am using a custom Board file and I was thinking that in audio_board_sdcard_init() I could decide how the SDCARD mode is selected and pin selection but... I dont see where.

Is there any example of reproducing a sound file in the SDCARD with a SDcard connected in SPI mode where is possible to select the pins, miso, mosi... etc?

Thanks!

Re: element_sdcard_mp3 example how to change SPI SDcard configuration

Posted: Fri Jan 01, 2021 12:11 pm
by ihouses
I see that in Lyrat minit 1.2 is using the SD in 1 bit mode but still I don't know where to select the pins, in a similar way as the I2S and I2C pins are described in the board.c file.

Re: element_sdcard_mp3 example how to change SPI SDcard configuration

Posted: Fri Jan 15, 2021 5:46 am
by hendog82
Hi,

Have you figured out a solution to set the app to SPI mode?

Thanks.