Skip to main content
MDeva.1
Associate III
October 15, 2022
Question

External crystal not oscillating

Hello,

I have custom board. I am working on STM32H7 controller. We use the external crystal of 25Mhz. But when we use that external oscillator using the HSE ,it doesn't provide the clock to controller. Why these happening. Can you please help me

This topic has been closed for replies.

10 replies

ST Technical Moderator
October 17, 2022

Hello @MDeva.1​ 

Is STLink disconnected/connected?

I advise you to check the board schematics and User manual.

Have a look also at this AN2867 Application note Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
MDeva.1
MDeva.1Author
Associate III
October 17, 2022

I am using the STM32CUBEProgrammer for programming. The STLINK is connected to Board and PC.

itsrabbit
Associate
October 18, 2022

Hello @MDeva.1​ ,

Where do you use your external clock? For example, you choose your clock as HSE in clock configuration, but as Internal Clock in where you need it (TIM clock source etc.) right?

Are you sure that you run your tasks after Init and clock config functions?

MDeva.1
MDeva.1Author
Associate III
October 18, 2022

I am sharing the snap of my configuration part in these I enable the USB and GPIO . If any thing is wrong please tell me

0693W00000UoH1aQAF.png0693W00000UoH1uQAF.png0693W00000UoH1VQAV.png

itsrabbit
Associate
October 18, 2022

I was trying to ask, what do you use your external clock for? If you are using it for timer interrupt is timer clock source correct?

Javier1
Principal
October 19, 2022

every time this happened to me the issue was the XTAL capacitors were too high.(wrong values placed by the production team)

hit me up in https://www.linkedin.com/in/javiermuñoz/
ONadr.1
Senior III
October 19, 2022

The crystal could be broken or, more probably, has different parameters, than MCU need. You can try conect a paralel rezistor to crystal, about 1Mohm, or different type of crystall. You should read the AN2867 to know, how to choose a crystal according to its parameter, as ST employee proposed in the first answer.

CYANG.1
ST Employee
October 26, 2022

Hi

You may refer to ST STM32H7 tools boards on ST website and choose same parameters parts of crystal circuit on these boards. ​