2021-04-12 11:14 PM
Hi,
I am using STM32F469 discovery kit for a audio processing study. I am using STM32CubeMX (ver 6.2.0) for project setup and init code generation. In my application, I found a clock sync problem on MIC and Codec Playback. After some tracings, I found the code seemed different to GUI setting. On GUI, I took PLLI2SQ for SAI-A clock source as below:
but I found that auto-gen code was set to SAI_CLKSOURCE_PLLSAI. Then I manually changed it to SAI_CLKSOURCE_PLLI2S, then sync problem seemed gone.
Would it be a bug of the tool? Or would I miss something else?
Good day,
Young
Solved! Go to Solution.
2021-08-04 06:28 AM
Hi @YChan ,
Good news :smiling_face_with_smiling_eyes: I am pleased to inform you that this issue is fixed in the latest STM32CubeMX version 6.3.0.
Now, the selected clock source in CubeMX clock tree is correctly generated.
Thanks for your contribution.
Khouloud.
2021-04-12 11:20 PM
copy and paste pics were missing in last post, please see belows:
GUI clock setting:
Manually changed code:
Good day.
Young
2021-04-13 12:33 AM
Good questions, I also encountered that not all clock settings that are auto corrected by STM32CubeMX necessarily the solution. I wish there are some kinds of docs or video training to explain them
2021-04-19 02:14 PM
Hello @YChan ,
First let me welcome you to the STM32 Community :smiling_face_with_smiling_eyes:
Thanks for your feedback and for raising this issue, it will be reported internally to be reviewed. I'll surely keep you posted with updates.
Sorry for any inconvenience that this may cause.
Thanks a lot for you contribution.
Khouloud.
2021-08-04 06:28 AM
Hi @YChan ,
Good news :smiling_face_with_smiling_eyes: I am pleased to inform you that this issue is fixed in the latest STM32CubeMX version 6.3.0.
Now, the selected clock source in CubeMX clock tree is correctly generated.
Thanks for your contribution.
Khouloud.