cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F405 I2S3 problem

fb2
Associate II
Posted on February 17, 2016 at 17:58

Hello,

I'm having a problem after enabling I2S3 in master receive mode, for aquiring data from a mems mic.

After calling HAL_I2S_Receive_DMA(), all other DMAs go to RESET state (all of them were READY).

I tracked down the problem, and this happens after:

     /* Enable Rx DMA Request */  

      hi2s->Instance->CR2 |= SPI_CR2_RXDMAEN;

is executed (in HAL_I2S_Receive_DMA() function).

Anyone knows why this happens, or what am I doing wrong?

Thank you to all.

Regards.

#stm32-i2s-dma
1 REPLY 1
fb2
Associate II
Posted on February 17, 2016 at 19:45

Found the error, wrong buffer size for the DMA receive. That caused all the problems.

Sorry

Fernando