cancel
Showing results for 
Search instead for 
Did you mean: 

Does anybody have an software examples that allow to set up and send data for STM32L496 Serial Audio Interface (I2S)?

AStre
Associate II

Hello,

I've faced some problems with setting up and sending data for STM32L496 Serial Audio Interface (I2S) using HAL functions from the PACK. Could you recommend some software examples or a sequence of actions?

Thanks,

Alex

1 ACCEPTED SOLUTION

Accepted Solutions
AStre
Associate II

Everything works fine now. It just takes some time to make it work.

Alex

View solution in original post

4 REPLIES 4

What problems exactly?

What is PACK?

JW

AStre
Associate II

I use the PACK 2.3.0. for the micro STM32L496 on the Nucleo-L496ZG board.

After SAI1_A initialisation using HAL_SAI_Init(&hsai_BlockA1), I tried to send data using

HAL_SAI_Transmit(&hsai_BlockA1, (u8*)&test_sai, countof(test_sai), HAL_MAX_DELAY).

Everything is supposed to be OK: PLLSAI1, clock selection, settings for SAI1, frame and slot settings, etc.

There is nothing on SAI1_A pins.

Thanks,

Alex

AStre
Associate II

Hello,

I can set up SAI's pll, frame, slot parameters successfully. Unfortunately, there is some problem with sending data. When I use the function HAL_SAI_Transmit, I can see that FIFO is fully loaded with data, SAI is enabled using __HAL_SAI_ENABLE(hsai), but there is no data on the SD pin. I can see FS and SCK signals.

Does anybody have any ideas what could cause the problem?

Thanks,

Alex

AStre
Associate II

Everything works fine now. It just takes some time to make it work.

Alex