2026-03-27 3:36 AM - last edited on 2026-03-27 5:59 AM by Sara BEN HADJ YAHYA
e.g. select I2S with "Master transmit" which should only use I2S_CK, I2S_WS and I2S_SDO, yet the I2S_SDI pin is also muxed and blocked for other use (and both DMA directions are available)
2026-03-27 3:27 AM - last edited on 2026-03-27 6:01 AM by Sara BEN HADJ YAHYA
with old CubeMX, one could select a custom sample rate:
new CubeMX2 only provides a fixed list, it should also allow a user defined sample rate
2026-03-27 7:44 AM
Hello @av500
Thank you for bringing this issue to our attention.
I reported this internally.
Internal ticket number: CDM0061115
2026-04-15 4:15 AM - edited 2026-04-15 4:19 AM
Hello @av500
@av500 wrote:
with old CubeMX, one could select a custom sample rate:
![]()
new CubeMX2 only provides a fixed list, it should also allow a user defined sample rate
Audio codec in the market use only frequencies that are listed in CubeMX2. Provide other frequencies does not really make sense according to existing devices.
If the purpose is to fine tune the real frequency on I2S bus, then the user can change in the clock tree the source clock frequency of his instance. The real frequency depends directly on this source clock and the computed prescalers. For instance, to reach 11kHZ on C5 product he can choose PSIK as source clock configured at 100MHz and the real frequency will be 11042Hz :
It is also possible to choose APB2 as source clock at 48MHz, then the real frequency will be 11029Hz :
This fine tune step must be done inside clock configuration panel :
If possible, please tell us your specific requirements, and we’ll provide the correct setup for your clock.
2026-04-15 4:25 AM
"...Audio codec in the market use only frequencies that are listed in CubeMX2. Provide other frequencies does not really make sense according to existing devices..."
2026-04-15 5:21 AM
I agree with @av500 , it is fine to have presets, but preventing users to select anything that the hardware can perfectly do is counter productive.
I can see situations where CubeMX2 is used as an evaluation tool to assess if the C5 family (for now) can be a good fit for a specific task, here generating a non standard I2S clock frequency for whatever reason.