How can I configure 2 DMA for 2 i2s modules? [Solved]
Hi, I am trying to use a 4 I2s microphone. And I am using cubemx.
I made work both of them with a sinple DMA transfer.
I used I2s half duplex reciever 16of32bits sample rate 48Khz and DMA for 48*2 samples with uint16_t format. For that I used DMA1 stream 0, pheriferal to memory, half word... circular.
Then I used HAL_I2S_RxCpltCallback to make things in mi code.
All works well.
The problem is when I include another I2S module (i2s3),
I sused cubemx to obtain same configuration but in this case I used DMA1 stream 2.
then
MX_GPIO_Init();
MX_DMA_Init();
MX_I2S2_Init();
MX_I2S3_Init();
HAL_I2S_Receive_DMA(&hi2s2,(uint16_t *)data_i2s2,I2S_BUFFERSIZE);
// HAL_I2S_Receive_DMA(&hi2s3,(uint16_t *)data_i2s3,I2S_BUFFERSIZE);
It is possible make different dma streams in parallel.
I am afraid becouse i have just to realice that stmf401re has only one DMA module.
Can you help me with this?

