2024-03-20 08:07 PM
I could cry... ("rrrr", the more I dive into latest STM MCUs - the more I get frustrated - LOL)
The datasheet for STM32U5A5, LQFP64 package, tells me: there are PB15 as SAI2_SD_A and also PC12 as SAI2_SD_B.
But the CubeMX does not let me configure these signals as SAI2: I need just one pin (one of them, preferred as PB15 = SAI2_SD_A, for a S/PDIF output).
But:
Is this a "bug" in the CubeMX tool? (I hope so!)
Or:
based on datasheet - still possible to use SAI2 and one pin as SAI2_SD_A or SAI2_SD_B as a S/PDIF output?
How to generate code for SAI2_SD_x as S/PDIF output? (assuming, changing to a different package just for code generation).
Assuming (hoping) just the CubeMX software is wrong - but the chip has a complete SAI2.
It is very confusing: the datasheet tells me something which is not correctly reflected in CubeMX.
Dear STM team:
Solved! Go to Solution.
2024-03-28 08:16 PM
even not working yet (SPDIF on SAI2_B) - I think the HAL driver has an issue to configure the SPDIF clock properly.
(a separate thread following)