cancel
Showing results for 
Search instead for 
Did you mean: 

DMA configuration for SAI on STM32N6

Zipper
Associate II

I'm trying to get the SAI working on the NUCLEO-N657X0-Q but I'm not having any luck. I tried the interrupt API and I got it somewhat working but the supposedly non-blocking API seems to block on the first call to HAL_SAI_Transmit_IT. The DMA configuration on this MCU series is very complicated compared to other series and I have no clue where to even start. I couldn't find any documentation about it whatsoever.

What I need is full-duplex 8-slot TDM with 32-bit samples at 48kHz. If someone could tell me how to configure DMA for this in CubeMX and write some basic C code to get it running I would very much appreciate it.

4 REPLIES 4
Zipper
Associate II

I found AN5593 but, as a certain YouTube comment would say, it is rather useless.

Saket_Om
ST Employee

Hello @Zipper 

Please refer to this example in STM32CubeH5.

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.
Saket_Om

The linked-list mode is quite perplexing. Is there a way to do it with standard request mode?

EXUE.2
ST Employee