cancel
Showing results for 
Search instead for 
Did you mean: 

I2S read write at the same time for STM32F429IGT6

ChenkaiYi
Associate

Hi STM,

I'm working on coding I2S read/write at the same time with STM32F429IGT6.
I enable I2S write with HAL_I2S_Transmit_DMA and Audio playback successfully.
I could also scope the signal from the Sdout pin.

However, if I enable I2S read with HAL_I2S_Receiver_DMA at the same time.
The RX_flag will always show up Busy and play back also can't work.

Do you have the sample code for the I2S read/write at the same time?

2 REPLIES 2
ChenkaiYi
Associate

Hi Team,

This application is for audio echo cancellation.

I used I2S SDIN and SDOUT with the same clock(BCLK and LRCLK).

The TX_DMA is working and Playback on amp is normally.

I could also scope the data output from SDOUT of audio amp.

But RX_DMA can't work correctly.

Do you have the sample code for the it?

Imen.D
ST Employee

Hello @ChenkaiYi ,

Check the buffer size and make sure that the DMA data width is set to "Word".

You can try I2S example within STM32CubeF4 package:

STM32CubeF4/Projects/STM324xG_EVAL/Examples/I2S/I2S_Audio at master · STMicroelectronics/STM32CubeF4 · GitHub

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen