cancel
Showing results for 
Search instead for 
Did you mean: 

Try to use SAI(i2s) to record in DMA Mode, but fail on STM32L476RG-Nucleo board

Alin.11
Associate

Hi All,

Attachment is SAI in DMA mode source code generate from CubeMX, but the code doesn't works. DMA interrupt in this code can't be trigger so no data receive from SAI.

  • I can run demo code SAI_AudioPlay on STM32L476 Nucleo board, it works.
  • I can receive data in SAI blocking mode ( HAL_SAI_Receive() ), but get nothing in DMA mode ( HAL_SAI_Receive_DMA() )

SAI is i2s Master mode and audio signal come form Audio Precision PISA-2722. Where needs to be fixed?

Thanks!

0 REPLIES 0