2025-03-28 2:09 AM
Hi,
big surprise: when activating SAI on H7A3ZIT , no configuration possible : ...nothing to configure...
+ on IDE 1.18.0 , with newest Cube package: 1.12.1
+ on H743ZIT , looks as it should:
... 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 */
}
2025-03-28 2:41 AM - edited 2025-03-28 2:42 AM
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.
2025-03-28 3:33 AM - edited 2025-03-28 5:09 AM
Hi, @KDJEM.1 ,
similar ...but new. Or new old recovered, because on last Cube 1.11.2 :
it was ok, at least SAI :
--- but SWV not working here at all !
here sending on SWO in main loop - nothing comes to console, no profiling also:
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:
So this is the well known state of SWV on STM's IDE . fine.
2025-03-28 3:50 AM
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.