cancel
Showing results for 
Search instead for 
Did you mean: 

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 ;)

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

View solution in original post

3 REPLIES 3
Sara BEN HADJ YAHYA
ST Employee

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.

Thanks.

Piranha
Chief II

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... ;)