cancel
Showing results for 
Search instead for 
Did you mean: 

on H7A3 no SAI configuration in Cube - Bug report

AScha.3
Chief III

Hi,

big surprise: when activating SAI on H7A3ZIT , no configuration possible : ...nothing to configure...

AScha3_0-1743152470796.png

+ on IDE 1.18.0 , with newest Cube package: 1.12.1

AScha3_1-1743152583100.png

+ on H743ZIT , looks as it should:

AScha3_2-1743152726732.png

... V1.12.2  coming then ?  

- or "manual setting needed ? on H7A3 it makes then: (ignoring the warning about SAI not correct set)

static void MX_SAI1_Init(void)
{

  /* USER CODE BEGIN SAI1_Init 0 */

  /* USER CODE END SAI1_Init 0 */

  /* USER CODE BEGIN SAI1_Init 1 */

  /* USER CODE END SAI1_Init 1 */
  hsai_BlockA1.Instance = SAI1_Block_A;
  hsai_BlockA1.Init.AudioMode = SAI_MODEMASTER_TX;
  hsai_BlockA1.Init.Synchro = SAI_ASYNCHRONOUS;
  hsai_BlockA1.Init.OutputDrive = SAI_OUTPUTDRIVE_DISABLE;
  hsai_BlockA1.Init.NoDivider = SAI_MASTERDIVIDER_ENABLE;
  hsai_BlockA1.Init.FIFOThreshold = SAI_FIFOTHRESHOLD_EMPTY;
  hsai_BlockA1.Init.AudioFrequency = SAI_AUDIO_FREQUENCY_192K;
  hsai_BlockA1.Init.SynchroExt = SAI_SYNCEXT_DISABLE;
  hsai_BlockA1.Init.MonoStereoMode = SAI_STEREOMODE;
  hsai_BlockA1.Init.CompandingMode = SAI_NOCOMPANDING;
  hsai_BlockA1.Init.TriState = SAI_OUTPUT_NOTRELEASED;
  if (HAL_SAI_InitProtocol(&hsai_BlockA1, SAI_I2S_STANDARD, SAI_PROTOCOL_DATASIZE_16BIT, 2) != HAL_OK)
  {
    Error_Handler();
  }
  /* USER CODE BEGIN SAI1_Init 2 */

  /* USER CODE END SAI1_Init 2 */

}

 

If you feel a post has answered your question, please click "Accept as Solution".
3 REPLIES 3
KDJEM.1
ST Employee

Hello @AScha.3;

 

Similar issue is reported here.

This issue has been raised internally to dev team for fix.

Internal ticket number: 204851 (This is an internal tracking number and is not accessible or usable by customers).

 

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.

Hi, @KDJEM.1  ,

similar ...but new. Or new old recovered, because on last Cube 1.11.2 :

AScha3_0-1743157215518.png

it was ok, at least SAI :

AScha3_1-1743157276713.png

--- but SWV not working here at all !

here sending on SWO in main loop - nothing comes to console, no profiling also:

AScha3_2-1743157543920.png

btw on H743ZIT its working , profiling also.

 

ed with recent Cube/HAL v1.12.1 , after maybe 30 times (!!!!) click on start trace SWV, its working:

AScha3_0-1743163680583.png

So this is the well known state of SWV on STM's IDE . fine.

If you feel a post has answered your question, please click "Accept as Solution".
KDJEM.1
ST Employee

Hello @AScha.3;

 

For the missing SAI configuration, this is a new issue detcted after upgrading to STM32CubeMX 6.14.0 and/or to STM32CubeIDE 1.18.0 versions.

I apologize for any inconvenience. I come back to you when the issue is fixed.

 

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.