cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L152 Oscillator Circuit

cbolton
Associate
Posted on July 21, 2015 at 14:07

We are using the L152 processor in a new design. This is the first time we've used the STM32 family and it is mostly working wonderfully. However, on the three prototypes we have, only one crystal oscillator works reliably. The others run fine when driven off an external oscillator.

The layout is tightly run on a 4-layer board with ground plane, there are no close tracks or plane jumps, we have a guard around the crystal, we've scoped out the oscillator using a low-cap FET probe. The crystal is an 8MHz HC-49 type with 20pF load cap and 2 - 20pF caps to ground. We've played around with different output pin series resistors, lower value caps, and different crystals but the oscillator won't budge!

We've read AN2867 and checked the design pin-for-pin against the STM32L152D-EVAL board schematics and everything looks in order. As a test, we've taken the demo code from the STM32L152D-EVAL code and tried to run it verbatim, without any luck. When run off an external oscillator, though, the board runs and executes code flawlessly.

Any thoughts would be appreciated!

#oscillator-clock-stm32l152
1 REPLY 1
Posted on July 21, 2015 at 17:26

Do the same crystals work on an L1-DISCO board?

Shorts/Opens?

Break the HSE enable/start code out of system_stm32l15xx.c, make sure it's starting, and that it's not prematurely bombing out of that.

Make sure you're not using BYPASS mode.

Do you have a specification/data sheet for the part you purchased?

JFVNY HC-49S-B20QTA-8.0000

http://search.alkon.net/cgi-bin/pdf.pl?pdfname=05616.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..