Skip to main content
therealergo
Associate II
Question

STM32CubeMX 6.19.0 Generated Code for MDF Clock Glitch on STM32U535VCI6Q Startup

Using the STM32CubeMX-generated code for initializing the MDF peripheral, using SITF0 with CCK0 as output clock and DFLT0 and DFLT1 both receiving rising and falling data from SITF0 respectively, the clock appears to glitch high for about 44us (in my case, with 2.048MHz CCK0 output clock and 20.48MHz MDF1 kernel clock) while the peripheral is being initialized. Pausing the clock like this could cause odd behavior for some devices. I have attached scope traces of this glitch. I’m not sure what the exact cause is here, but it can be worked around by not initializing the CCK0 output pin until after MX_MDF1_Init() has completed.