2016-07-19 04:19 AM
Hi everyone,
I have designed a board using stm32f407vgt6 and placed a 8MHz crystal oscillator with 22pF capacitors. The code I wrote works perfectly with stm32f4discovery. But when I try to use my board, it can't initialize external oscillator and use 16 MHz internal oscillator. I can't find the problem and want to know if it may be about pcb design or the components. Thanks in advance. #external-clock #hse #stm32f4-oscillator2016-07-19 04:51 AM
> 8MHz crystal oscillator with 22pF capacitors
Crystal, or a crystal oscillator? Crystal oscillator has at least 4 pins and wouldn't need capacitors, but would need a supply connected. But I assume you have a 2-pin crystal. Not all crystals are created equal, and 22pF may be not adequate. Also, the layout may be critical, it's a low-power high-frequency circuit, basically of analogue nature. Read AN2867: Oscillator design guide for STM8S, STM8A and STM32 microcontrollers. JW2016-07-19 05:08 AM
Sorry, it is a crystal, can capacitors alone cause this? Because it acts like there is no crystal.
2016-07-19 06:06 AM
Hi tuncer.erdinc,
I recommend you to have a look to the application note it may be helpful. -Syrine-