cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-H745ZI-Q collegata a pmod I2S2

CiStoProvando
Associate

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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
KDJEM.1
ST Employee

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

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.