cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO HSE from ST-LINK MCO is never ready

gb2835
Associate

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief II

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

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
AScha.3
Chief II

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

If you feel a post has answered your question, please click "Accept as Solution".

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