Skip to main content
Visitor II
September 6, 2023
Question

Designing with STM32L496QGI6

  • September 6, 2023
  • 2 replies
  • 1386 views

Hello Team,
We are planning to use the MCU STM32L496QGI6 for one of our products.
The HSE we are using is ECS-480-10-37B2-RWN-TR (48MHz crystal) and the value of the load capacitor is 20pF.
The board works well with HSI, but when we switched to HSE, even a GPIO was not toggling.
What could be the reason?
Looking for your reply

    This topic has been closed for replies.

    2 replies

    ST Employee
    September 6, 2023

    Hello @shibin , 

    To check if the HSE is connecting properly, you can use an oscilloscope to measure the voltage across the crystal pins.

    Foued_KH_0-1694006903485.png

    You can use the RCC_GetFlagStatus() function to check the status of the HSE. The function returns the status of the RCC flags, including the HSE ready flag. If the HSE is connected and stable, the HSE ready flag should be set (Bit 17 :RCC_CR_HSERDY: HSE oscillator clock ready).

    Foued

    Graduate II
    September 6, 2023

    To measure performance you'd want to measure HSE exported via MCO (PA8) pin so as not to load the crystal.

    If the crystal is not starting you'll need to review the components and layout, perhaps trying others, and checking if this STM32 has a "drive level" setting you can change. There's an app note on crystals for the STM32's

    Check voltage scaling setting. Cited part says 10pF..