2026-02-21 7:58 AM - last edited on 2026-03-02 4:20 AM by KDJEM.1
Hello All,
I need some guidance from you. I have a project with an STM32 microcontroller, encoders with push buttons, USB communication (for firmware updates and communicating with a Windows app, etc). MIDI in out communication, digital potentiometers, and digital switches.
Can someone help me, please, and take a look at my diagram to correct it before starting to make the prototype board? My experience with stm is really limited. I heard that a lot of decoupling capacitors are needed.
Can you please give me some support and point out what I should correc tin the attached diagram?
Thank you very much!
Alex
2026-02-21 9:27 AM - edited 2026-02-21 9:32 AM
Regarding USB: You need 5k1 on A5 and B5 or on a pure USB-C connection things will only work in one direction of the USB-C plug.
Connect VBAT
No pull-up and additional capacitor on PF2 when use in its reset incarnation.
Compare with Nucleo boards too.
2026-02-21 11:06 AM
Consider using a standard programmer connector rather than a generic header.
Otherwise seems fine, apart from the notes above.
Getting started with STM32G0 MCUs hardware development - Application note
2026-02-21 8:13 PM
Thank you very much for your support.
I reviewed the diagram and corrected what you pointed.
I also read the document from the above link, and is very useful, also later when I will design the PCB.
For the connector, do you mean this one: FTSH-105-01-l-DV - 2 rows of pins?
The decoupling capacitors are ok?
Sorry to bother you
Thank you!
2026-02-23 7:05 AM
Your USB connector still doesn't seem right.
Bypass capacitors seem okay. Technically not meeting the datasheet recommendations of a 4.7 uF bulk capacitor.
Getting started with STM32G0 MCUs hardware development - Application note