2026-02-15 9:17 AM - last edited on 2026-02-15 1:12 PM by mƎALLEm
Hello everyone,
I have a Python app that needs to communicate with my custom STM32L432KC board. Before ordering my prototype board, I was wondering if it is possible to do it only via USB with the pins PA11 and PA12, or if I need a USB‑UART chip like the CP2101‑GM?
Thanks
2026-02-15 12:50 PM
Hello,
And what is the relation of ST-LINK in the thread's title with your question?
2026-02-15 12:55 PM
Actually, I'm wondering if I need an ST-Link or if the CP2101-GM chip will be able to communicate via UART without it. So, do I need an ST-Link to see the STM32 in the COM port on Windows, or will the CP2101-GM chip work as well? And is the chip necessary, or can I have a COM port with just the STM32 chip?
2026-02-15 1:10 PM
Ok but the tilte needs te be updated to more concise.
Which ST-link you are referring to? a stand alone ST-LINK like this one:?
Or an ST-LINK that you've de-attached from a Nucleo board?
For the second one yes you can do it. For the first one, not possible.
Meanwhule, you can use any USB to UART bridge to connect your PC/USB to STM32/U(S)ART.
2026-02-16 1:57 AM - edited 2026-02-16 1:58 AM
@Raphael716 wrote:was wondering if it is possible to do it only via USB with the pins PA11 and PA12
Yes, the STM32L432KC has USB on pins PA11 and PA12:
https://www.st.com/resource/en/datasheet/stm32l432kc.pdf#page=53
via: https://www.st.com/en/microcontrollers-microprocessors/stm32l432kc.html#documentation
That will mean that you will have to do a complete USB hardware design on your custom board, and provide a complete USB software implementation in your custom software.
Depending on your level of both hardware & software experience, you may find it easier to just use a USB-to-UART adaptor...
(avoiding the complexities of USB hardware & software implementation is exactly why USB-to-UART adaptors exist)