2022-01-03 12:05 AM
STM32 model : STM32F413CGU6
25MHz crystal : https://media.digikey.com/pdf/Data%20Sheets/AVX%20PDFs/CX3225GA_Series_Spec.pdf
The problem is that I can not connect STM32 by STM32 Cube Programmer. The programmer can not detect STM32 unless I desolder the crystal. When I desolder the crystal I can easily connect and program my STM32.
The schematic :
I probe the pins of the crystal. I observed the waves with 180 degree phase shift:
- 25MHz oscillation between 1,5Vdc to 2Vdc for OSCIN pin
- 25MHz oscillation between 1,37Vdc to 2,33Vdc OSCOUT pin
The layout :
Here are what I’ve tried so far and none of those seemed to work.
- Change 8pF caps with 15pF / 18pF / 4pF.
- Change 0Rs with 800Rs. (800 is found by Drive level calculations indicated in STM’s oscillator design guide. I suspected drive level might be the issue.)
- Change 0Rs with 22R.
- R2=0R, R1=22R
- R2=0R, R1=800R
Any help will be appreciated.
Thanks.
2022-01-03 01:06 AM
Welcome, @jas.1, to the community!
It looks like your problem has multiple causes: crystal type and layout.
Good luck!
/Peter
2022-01-03 01:41 AM
Hi Peter,
Thanks for quick return.
I soldered 22R for R1 and 0R for R2 and then use 8pF load capacitance. It worked properly.
In my post I stated I tried R2=0R, R1=22R, but figured out that I soldered 22R in wrong place :) .
Now, things seem fine. I still think the problem caused by drive level. OSCOUT level was 0.5V higher than the OSCIN level. 22R resistor almost equalized the levels.
I hope it will work without any problem in the future.