Skip to main content
Senior III
July 10, 2026
Question

Activate Spread Spectrum in CubeMX

  • July 10, 2026
  • 1 reply
  • 9 views

 I have activated spread spectrum on two of the three PLLs I’m using in an STM32H7S7 via code

LL_PLL_SpreadSpectrumTypeDef sspr2;
LL_PLL_SpreadSpectrumTypeDef sspr3;

// in SystemClock_Config

LL_RCC_PLL2_EnableSpreadSpectrum();
LL_RCC_PLL3_EnableSpreadSpectrum();

sspr2.DitheringRPDFN = 1;
sspr2.DitheringTPDFN = 0;
sspr2.IncrementStep = 1200;
sspr2.ModulationPeriod = 10;
sspr2.SpreadMode = LL_RCC_PLL_SPREAD_CENTER;
LL_RCC_PLL2_ConfigSpreadSpectrum(&sspr2);

sspr3.DitheringRPDFN = 0;
sspr3.DitheringTPDFN = 0;
sspr3.IncrementStep = 214;
sspr3.ModulationPeriod = 60;
sspr3.SpreadMode = LL_RCC_PLL_SPREAD_CENTER;
LL_RCC_PLL3_ConfigSpreadSpectrum(&sspr3);

Is there a way in CubeMX to activate it to make the settings generated automatically, as everything else I’m using?

I’ve checked the RCC section in System Core as well as the Clock Configuration tab, but I can’t see anything regarding spread spectrum

1 reply

ST Technical Moderator
July 10, 2026

Hello ​@nico23 

CubeMX does not currently provide STM32H7S7 PLL spread-spectrum configuration in its GUI, so there is no automatic code generation for it.
The correct solution is to keep those LL calls in preserved user code. 

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. Saket_Om