‎2022-01-14 02:47 AM
I'm working on a board design with a STM32F103C8. First time for me to build a PCB with STM32, I've always worked with "blue pill" boards.
Not sure about BOOT wiring. The firmware will be uploaded using STM32CubeProgrammer. The board should startup using the internal firmware.
Only HSE External Crystal is used, 8Mhz.
PROG connect is used for programming/debugging.
Can you confirm this design will work? Thanks!
Note: first post here, so excuse me if I'm doing wrong.
Solved! Go to Solution.
‎2022-01-14 06:35 AM
‎2022-01-14 03:41 AM
Welcome, @Davide G_Oironi​, to the community!
Good luck!
Regards
/Peter
‎2022-01-14 05:58 AM
You should have a bulk 4.7uF capacitor on VDD somewhere.
Don't be afraid to use multiple GND and +3V3 symbols on your schematic to increase readability.
‎2022-01-14 06:06 AM
Thank you
@Peter BENSCH​
1)
According to AN2867 if I'm right I should apply the 3.3 Load Capacitance formula
Supposing Cs 5pF, which I think is a common value for "standard" PCB, my oscillator should have by datasheet 20pF Load Capacitance, so (Cl1*Cl2)/(Cl1+Cl2)=20pF-5pF and Cl1==Cl2 => Cl1,Cl2=30pF
Does it sound right?
2)
Thank's to you I've look at the datasheet, the NRST already has a RPU resistor, so R9 could be removed
3)
done
4)
I've fond R10 in other schematics, never seen that on my AVR experience, I've to investigate why others (in blue pill for example) use this resistor
@TDK​
Yes, I've a 10uF on the supply sheet.
You are right, readability is not that much with that few VDD and GND points.
Find schematic updated attached
‎2022-01-14 06:15 AM
The feeback resistor was used in the last century in oscillator circuits that did not have an internal one. However, the STM32s have had this feedback resistor built in since the STM32s era began in 2007.
Why it was used in the Blue Pill... only its developers know.
‎2022-01-14 06:17 AM
only its developers know :face_with_tears_of_joy: that's right :)
Thank you again.
About the 1) formula, is that right for a 20pF Load Capacitance? By the way the oscillator is a Fundamental one like specified in the AN2867 paper.
‎2022-01-14 06:20 AM
1: yes, 30pF sounds reasonable if CL is actually 20pF (didn't expect a crystal with such a huge load capacitance). 4..5pF for CS are quite common values.
Good luck!
/Peter
‎2022-01-14 06:29 AM
‎2022-01-14 06:30 AM
Thank you!
I've posted the updated schematic just in case, for other people.
‎2022-01-14 06:31 AM
Please open the shortcut from NRST to VDD.