cancel
Showing results for 
Search instead for 
Did you mean: 

Several issues in SAI peripheral introduced CubeMX6.14.0 and not yet resolved

Craig_Robertson
Visitor

I found the following issues when generating code for an SAI peripheral using CubeMX6.14.0 for the STM32H73IIKx board. These issues are also present in 6.14.1 and 6.15.0. They are not present in 6.13.0.

1. Displayed Real Audio Frequency in CubeMX

Two sub-issues:

  • When a specific Audio Frequency is selected, the displayed Real Audio Frequency seems to be equal to the read audio frequency for a clock divider of 0, regardless of the Audio Frequency Selected.
  • WhenUser set Master Clock Divider value is selected for Audio Frequency, the displayed Real Audio Frequency is 0.

These issues are shown in the attached Real Audio Frequency.jpg.

2. OVERSAMPING constants are used for the NoDivider field in the generated code

e.g. hsai_BlockA1.Init.NoDivider = SAI_MCK_OVERSAMPLING_DISABLE;

This is shown in the attached SAI Generated.jpg, which shows a diff between the code generated by 6.14.0 and previously generated code.

3. OVERSAMPING constants for the MckOverSampling field are incorrect

e.g. SAI_MCK_OVERSAMPLING_DISABLE is used when Master Clock Over Sampling is set to Enabled.

This is shown by comparing the configuration in SAI Config.jpg with the generated code in SAI Generated.jpg.

0 REPLIES 0