Music Data From SPI Instead of SD Card

hamzatamer76
Posts: 11
Joined: Mon Dec 16, 2024 5:26 am

Music Data From SPI Instead of SD Card

Postby hamzatamer76 » Thu Jan 23, 2025 11:49 am

Hello,

in ADF there is example for playing music from sd card. But I want to play music from spi peripheral. ESP32 will be slave microcontroller STM32 will be Master. STM32 will transmit mp3 data via SPI. So;
This is for sd card example
[sdcard]-->fatfs_stream-->mp3_decoder-->resample-->i2s_stream-->[codec_chip]

I want to do this
[STM32]-->spi_reader-->mp3_decoder-->i2s_stream-->[codec_chip]
Is there helpful example in ADF or IDF for my project. How can i do this.
Thank you

nopnop2002
Posts: 139
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: Music Data From SPI Instead of SD Card

Postby nopnop2002 » Sat Jan 25, 2025 4:36 pm

Here is the official SPI SLAVE sample.

However, I don't know if it can communicate correctly with the STM32 SPI Master.

https://github.com/espressif/esp-idf/tr ... /spi_slave

[STM32]--SPI->[ESP32]-->mp3_decoder-->i2s_stream-->[codec_chip]

Who is online

Users browsing this forum: No registered users and 10 guests