Skip to main content
Visitor II
February 20, 2025
Solved

STM32 HSE Crystal

  • February 20, 2025
  • 3 replies
  • 987 views

Hello, I'm using an STM32H750VB and am trying to use the HSE crystal to communicate over USB to my computer, but it isn't able to connect to my computer. I suspect that the issue lies with the crystal since I tried to probe it with an oscilloscope and wasn't able to get any sort of reading. Additionally, when I run a timed LED blinking code using the internal oscillator, it works properly, but when using HSE it doesn't blink. I attempted to calculate the values of the capacitors based on the crystal load capacitance of 8pF. Based on the image of the circuit and crystal parameters does it look like there is an issue with compatibility or component values? 

Avid_0-1740015744386.png

Avid_1-1740015879677.png

 

 

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    ...I also did the maths: with your high-frequency crystal and R37=330ohms you achieve a gain margin of 0.284 with the STM32H7, which is well below the minimum of 5. Even with R37=0 you only get 1.22.

    I'm afraid that you can't use this crystal on the STM32H7 because its ESR at 48MHz would have to be below 25ohms to achieve sufficient gain margin.

    Regards
    /Peter

    3 replies

    ST Employee
    February 20, 2025

    some comments:

    0) check and ensure schematics/PCB/component are aligned.

    1) it is not good to probe at OSC pins, PH0/PH1, as crystal oscillation may be impacted. It is recommended to probe at MCO pin, PA8, by enabling MCO output from source = HSE after enabling HSE oscillation, for debug purpose enabling MCO output from source = HSI first.

    2) if it is confirmed that HSE oscillation is failed (no MCO output from source = HSE), user may tune load caps for crystal, or say changing C16/C17 value to sth. like 8, 10 or 12 pF

    Technical Moderator
    February 20, 2025

    ...I also did the maths: with your high-frequency crystal and R37=330ohms you achieve a gain margin of 0.284 with the STM32H7, which is well below the minimum of 5. Even with R37=0 you only get 1.22.

    I'm afraid that you can't use this crystal on the STM32H7 because its ESR at 48MHz would have to be below 25ohms to achieve sufficient gain margin.

    Regards
    /Peter

    Technical Moderator
    April 17, 2025

    Hello,

    A new article "How to select a compatible crystal and load capacitors for STM32 with layout guidelines" has been published today and this thread has been linked to that article in the "Related links" section.

    Good reading.