Skip to main content
Alin.11
Visitor II
Feb 10, 2020 5:51 AM UTC
Question

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

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!

​

This topic has been closed for replies.