Skip to main content
Associate III
April 17, 2026
Question

X-CUBE-AI issue on STM32N6 Nucleo with SAI peripheral

  • April 17, 2026
  • 1 reply
  • 70 views

In an Edge AI audio project that I'm working on, there is SAI2 peripheral that stops audio transmission after a while when the AI algorithm in the while loop of the main.c has done some inferences.

The AI algorithm code was generated with Cube AI Studio and, when STM32CubeAI_Studio_AI_Process() is commented, the SAI peripheral works normally without interruptions.

The board used is a NUCLEO-N657X0-Q.

The version of software used is:

-ST Edge AI Core: version 4.0.0

-STM32CubeIDE: version 2.0.0

-Cube AI Studio: version 1.1.0

I've tried to search on internet for a solution and there is no material concerning it! I've tried to ask for help in other posts, but nobody helped me. Can somebody try to explain why and find a solution? I'm desperate and I don't know what to do for my project but withdraw.

 

1 reply

Julian E.
Technical Moderator
April 21, 2026

Hi @s319189,

 

Does the issue come from the audio streaming or the inference?

Can you bypass the inference in order to validate your implementation of the audio streaming first?

Does it bug again when you reactivate the inference?

Where does it stops?

 

Have a good day,

Julian 

​In order 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.
s319189Author
Associate III
April 21, 2026

1) "Does the issue come from the audio streaming or the inference?"

The issue comes from inference: when audio streaming is done without inference in the ground, audio is transmitted smoothly without any interruptions. However, when inference is done in the background instead, audio becomes corrupted and at a certain point the audio transmission is stopped...

2) "Can you bypass the inference in order to validate your implementation of the audio streaming first?"

Sorry, maybe it's my problem of understanding but I've not understood the second question

3) "Does it bug again when you reactivate the inference?"

Yes, it does exactly so...

4) "Where does it stops?"

Appearently at "STM32CubeAI_Studio_AI_Process();" line of code

I'll upload my project if it can be useful...

I've noticed using Oscilloscope probes that SAI1 SCK and FS lines get corrupted when inference is done, I don't know if it's a problem that can be solved

 

Julian E.
Technical Moderator
April 21, 2026

@s319189,

I shared your comment to our devs.

 

Have a good day,

Julian

​In order 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.