2023-12-20 08:58 PM - edited 2023-12-20 10:59 PM
I want to play audio on STM32F4 Discovery board. Audio is stored in SD card which connected by SDIO.
On discovery board, I see below connections.
I2S3_SCK -- PC10 -- (SCLK) CS43L22
I2S3_SD -- PC12 -- (SDIN) CS43L22
but PC10 & PC12 are also connected to SDIO_D2 and SDIO_CK. SDIO has no alternate pins.
Any suggestion on how to move I2S3_SCK and I2S3_SD to PB3 & PB5 alternate pins on discovery board.
Solved! Go to Solution.
2023-12-20 11:57 PM - edited 2023-12-20 11:59 PM
If you are looking to use the CS43L22, you should use the PC10 for I2S3_SCK and PC12 I2S3_SD. I think you will need to move to SPI for your SD card.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-20 11:03 PM
Hello @Nico3
You can use PB5 for I2S3_SCK and the PB3 for I2S3_SCK.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-20 11:09 PM
but audio codec CS43L22 is connected to PC10 and P12 as per schematic of discovery board.
2023-12-20 11:49 PM - edited 2023-12-20 11:57 PM
So you have to cut the trace PC12 to CS43L22 (DIN) and solder a wire to PB5 .
Then SDIO in 1-bit mode is possible. (1-bit mode is fast enough for audio and more easy to get it running than 4-bit)
+
Or try using the spi-mode to access sd-card, dont need the sdio-pins then.
+
Other way to play audio: use the USB -> MSC host , play from usb-stick then .
2023-12-20 11:57 PM - edited 2023-12-20 11:59 PM
If you are looking to use the CS43L22, you should use the PC10 for I2S3_SCK and PC12 I2S3_SD. I think you will need to move to SPI for your SD card.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.