Skip to main content
Graduate
February 4, 2024
Solved

NUCLEO HSE from ST-LINK MCO is never ready

  • February 4, 2024
  • 1 reply
  • 1529 views

Newbie here!

Setup:

  • STM32CubeIDE 1.10.1
  • Brand new NUCLEO-L476RG with MCO from ST_LINK MCU, no mods to the board
  • New STM32 project using CubeMX 6.6.1, default mode for peripherals used
  • System Core -> RCC -> HSE = BYPASS Clock Source
  • Clock configuration shown in attached, which is just the default values and switched from HSI to HSE
  • Code generated, no mods to the code

Running the code lands me in the Error_Handler(). Found I end up with HAL_TIMEOUT at the attached code. I've changed the HSE Startup Timeout Value to 10,000 ms and still get a timeout returned. Can anyone help with what I am missing? I'm really new to this stuff but have done the same steps with a brand new NUCLEO-F446RE and have no issues. I've also tried the latest CubeIDE/MX and another NUCLEO-L476RG board but have the same problem. A big thank you in advance! Let me know if I can provide more info.

 

gb2835_0-1707053291484.png

gb2835_1-1707053460802.png

 

 

    This topic has been closed for replies.
    Best answer by AScha.3

    Hi,

    look on your board: maybe has crystal 8MHz connected, not mco from st-link:

    AScha3_0-1707057357576.png

    So try : set HSE : crystal . 

    (Or close SB50 , to get the mco -> hse bypass then. )

    1 reply

    AScha.3Answer
    Super User
    February 4, 2024

    Hi,

    look on your board: maybe has crystal 8MHz connected, not mco from st-link:

    AScha3_0-1707057357576.png

    So try : set HSE : crystal . 

    (Or close SB50 , to get the mco -> hse bypass then. )

    gb2835Author
    Graduate
    February 5, 2024

    Thank you! I have no crystal at X3, but your comment led me to the below, a couple of which needed to be modified on my L4 board.

    gb2835_0-1707134290627.png