Skip to main content
Visitor II
January 25, 2024
Question

Nucleo-H745ZI-Q collegata a pmod I2S2

  • January 25, 2024
  • 1 reply
  • 851 views

Salve,
 il problema che riscontro con il seguente codice è quello di vedere in debug il caricamento dell'array tx da 4 a 7.
 Anche provando a debuggare line by line vedo che il codice entra solo nella funzione  HAL_I2SEx_TxRxCpltCallback
senza mai richiamare la (half) . 

Le due funzioni citate sopra dovrebbero attivare in modalità interrupt
HAL_I2SEx_TransmitReceive_DMA (&hi2s2, txBuf, rxBuf, 4) 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 26, 2024

    Hello @CiStoProvando and welcome to the Community :),

    Thanks to develop your posts in English so it helps us, and the users of our community understand your question and try to help you.

    Nucleo-H745ZI-Q connected to pmod I2S2

    Greetings,

    the problem I encounter with the following code is to see the loading of the tx array from 4 to 7 in debug. Even trying to debug line by line I see that the code only enters the HAL_I2SEx_TxRxCpltCallback function without ever recalling the (half) .

    The two functions mentioned above should activate in interrupt mode HAL_I2SEx_TransmitReceive_DMA (&hi2s2, txBuf, rxBuf, 4).

    Could you please check  the interrupt priorities?

    I recommend you the following examples which use I2S in DMA mode:

    https://github.com/STMicroelectronics/STM32CubeH7/blob/ccb11556044540590ca6e45056e6b65cdca2deb2/Drivers/BSP/STM32H7B3I-DK/stm32h7b3i_discovery_audio.c

    https://github.com/STMicroelectronics/STM32CubeH7/blob/ccb11556044540590ca6e45056e6b65cdca2deb2/Drivers/BSP/STM32H7B3I-EVAL/stm32h7b3i_eval_audio.c

    Thank you.

    Kaouthar