Skip to main content
Michal Dudka
Lead
Dec 22, 2021 10:47 AM UTC
Solved

SAI slot number bug in CubeMX 6.4.0

Datasheet claims that with FSDEF=0 (FS signal is start frame, not channel identificaion) i can set up number of slots (NSBLOT) to any value. In my case 1. CubeMX claims that it must be equal two (which is not true). When i try to set value to 1, then CubeMX show error with info that value need to be less or equal 1... and then forces value to 2 :D ... demonstrated on printscreen.

I can change number of slots to 1 in source code and SAI works well. But... you know what happen when i regenerate code ;)

This topic has been closed for replies.
Sara BEN HADJ YAHYA
ST Technical Moderator
Dec 29, 2021 2:26 PM UTC

Hello @Michal Dudka​ ,

Thanks for your feedback,

Actually, The number of slots must be equal to 2 in your case because the Output mode is set to MONO. If you set the Output mode to stereo, you will be able to set the number of slots to 1 .

For more details please check the RM0433 page 2284.

If you issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Regards,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

3 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
Dec 29, 2021 2:26 PM UTC

Hello @Michal Dudka​ ,

Thanks for your feedback,

Actually, The number of slots must be equal to 2 in your case because the Output mode is set to MONO. If you set the Output mode to stereo, you will be able to set the number of slots to 1 .

For more details please check the RM0433 page 2284.

If you issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Regards,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Michal Dudka
Lead
Dec 29, 2021 10:10 PM UTC

Thanks.

Piranha
Principal III
Dec 30, 2021 8:54 PM UTC

The reference manual:

Bit 12 MONO: Mono mode

This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. ...

A good example of how clicking CubeMX limits the learning of the actual device... ;)