Skip to main content
Graduate II
December 8, 2025
Solved

Why is 40 MHz HSE recommended for STM32MP2?

  • December 8, 2025
  • 1 reply
  • 116 views

In AN5489, the HSE is recommended to have 40 MHz. Why 40 MHz?

Why not 24 MHz HSE? Is 40 MHz a specific value for a certain pheripherial?

    This topic has been closed for replies.
    Best answer by PatrickF

    Hi,

    yes, 40MHz is the one giving best clock quality (i.e. direct path from HSE to PLL, meaning lowest jitter) for PCIE/USB SuperSpeed 5Gbits/s generation while allowing flexibility for other clocks (Ethernet Gigabit, USB high-speed, etc..).

    It should be noted that the trend of crystal size shrink to smaller packages mean higher frequency are 'easier' for crystal manufacturer (and so might give slightly better high volume pricing).

     

    Nevertheless, 24 MHz is supported too. Be careful that changing default HSE frequency need many changes in the DTS frequencies and clock tree.

    For USB boot, BootROM is able to autodetect 16, 20, 24, 28, 32, 36, 40 or 48 Mhz. 19.2, 25 or 26 MHz is even possible with OTP settings. 

    Unless absolutely needed (e.g. network companies often want to use 25MHz of their network chipset), we recommend to stick to ST recommendation of 40 MHz.

     

    Regards.

    1 reply

    Graduate II
    December 9, 2025

    Hello @DMårt 

    according to the 4.1.2 of the AN5489, the 40MHz is a good choice to get accurate USB HS Clocks.

    Best Regards.

    II

    PatrickFAnswer
    Technical Moderator
    December 9, 2025

    Hi,

    yes, 40MHz is the one giving best clock quality (i.e. direct path from HSE to PLL, meaning lowest jitter) for PCIE/USB SuperSpeed 5Gbits/s generation while allowing flexibility for other clocks (Ethernet Gigabit, USB high-speed, etc..).

    It should be noted that the trend of crystal size shrink to smaller packages mean higher frequency are 'easier' for crystal manufacturer (and so might give slightly better high volume pricing).

     

    Nevertheless, 24 MHz is supported too. Be careful that changing default HSE frequency need many changes in the DTS frequencies and clock tree.

    For USB boot, BootROM is able to autodetect 16, 20, 24, 28, 32, 36, 40 or 48 Mhz. 19.2, 25 or 26 MHz is even possible with OTP settings. 

    Unless absolutely needed (e.g. network companies often want to use 25MHz of their network chipset), we recommend to stick to ST recommendation of 40 MHz.

     

    Regards.

    DMårtAuthor
    Graduate II
    December 9, 2025

    @PatrickF 

    Thank you for that good answer.

    I understand now that 40 MHz is recommended due to direct path from HSE to PLL. 

    The reason why I'm selecting 24 MHz is because one oscillator of 24 MHz drives both the USB hub and the MP2.

    I that that for MP1, and it worked.