Skip to main content
Visitor II
August 22, 2024
Question

STM32H745 SAI mono_mode

  • August 22, 2024
  • 1 reply
  • 797 views

Hello community.

I am having an issue with the SAI on the STM32H745 not working in mono mode.
Please help me solve this problem.

I would like to use SAI1 in mono mode, but the code below does not work.
DMA transfer does not seem to be working.


hsai_BlockA1.Instance = SAI1_Block_A;
hsai_BlockA1.Init.AudioMode = SAI_MODESLAVE_TX;
hsai_BlockA1.Init.Synchro = SAI_ASYNCHRONOUS;
hsai_BlockA1.Init.OutputDrive = SAI_OUTPUTDRIVE_DISABLE;
hsai_BlockA1.Init.FIFOThreshold = SAI_FIFOTHRESHOLD_HF;
hsai_BlockA1.Init.SynchroExt = SAI_SYNCEXT_OUTBLOCKA_ENABLE;
hsai_BlockA1.Init.MonoStereoMode = SAI_MONOMODE;
hsai_BlockA1.Init.CompandingMode = SAI_NOCOMPANDING;
hsai_BlockA1.Init.TriState = SAI_OUTPUT_NOTRELEASED;
if (HAL_SAI_InitProtocol(&hsai_BlockA1, SAI_I2S_STANDARD, SAI_PROTOCOL_DATASIZE_16BIT, 2) != HAL_OK)
{
Error_Handler();
}

 

If you change SAI_MONOMODE to SAI_STEREOMODE in this state, it will work properly.

Thank you in advance.

    This topic has been closed for replies.

    1 reply

    ST Employee
    August 26, 2024

    Hi All,

     

    This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.

     

    Regards,
    Jake

    ST Support