Skip to main content
Associate
April 22, 2026
Question

STM32F7 - Unable to Select I2S Mode for SAI1 in CubeMX

  • April 22, 2026
  • 3 replies
  • 266 views

Hi: My goal is to perform full-duplex I2S using the STM32F722RET6 part. To achieve this using the pins available on the package it looks like I need to use SAI2 (sub-block B) as the master/TX and SAI1 (sub-block A) as a slave/RX synchronized to SIA2.

The configuration of SIA2 in CubeMX works fine.  However, when I attempt to configure the slave side (SAI1-A) the I2S option is greyed out (see below). Can anyone help me to debug this? Many thanks, Bruce.

2026-04-22_11-27-27.jpg

3 replies

ExtraAuthor
Associate
April 22, 2026

CubeMX version is 6.17.0.

Ghofrane GSOURI
Technical Moderator
April 23, 2026

Hello @Extra 

It would be great if you could share your IOC in order to check your configuration and see whether there is a conflict.

I will be waiting for your feedback.

Thx

Ghofrane 

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.
ExtraAuthor
Associate
April 23, 2026

Hi Ghofrane:

Thanks so much for the help. I have attached my IOC file. 

Bruce

 

ExtraAuthor
Associate
May 7, 2026

While searching the forum I found this issue from a few years back:

https://community.st.com/t5/stm32cubemx-mcus/stm32cubemx-doesn-t-seem-to-properly-support-configuring-sai1-on/m-p/285092/highlight/true#M14578

which appears to be almost identical to the problem I am experiencing. There is no resolution posted on that thread either.

Unfortunately, I am now starting to work on a "bare-metal" setup of SAI1_A since I'm not seeing any CubeMX support for this feature.

ExtraAuthor
Associate
May 7, 2026

Adding one other thing here. 

My application uses SAI2 (sub-block B) as the master/TX and SAI1 (sub-block A) as a slave/RX synchronized to SIA2. I used CubeMX to generate the SAI2 (sub-block B) configuration and I configured SAI1 (sub-block A) by hand using register writes per the datasheet. After a lot of debug, my system is working fine and is passing audio in both directions.

Conclusion: the F722 part is capable of working in this mode. I'm not sure why CubeMX doesn't allow the configuration. The manual setup of the SAI registers took me about 4 hours to get right.