Skip to main content
ARamt.1
Associate
February 25, 2021
Question

Communication of STM32g030c6t6 using stlink v3 set

  • February 25, 2021
  • 3 replies
  • 1035 views

I am working on a project and plan to use STM32g030c6t6 as micro-controller. I am using STLINK v3 set as debugger for uploading the program. I am unaware of how will be the connection of the debugger and controller as I want to communicate through UART

This topic has been closed for replies.

3 replies

KnarfB
Super User
February 25, 2021

The same pin cannot be used simultaneously for uart and debug.

But, the data sheet has a footnote on some pins: "Upon reset, these pins are configured as SW debug alternate functions...".

Meaning: The UART pin function is done by your firmware, *after* reset. In the short time before that, SWD is available, so you can still connect to the MCU under reset, e.g. for flashing or loading a special debug firmware etc... Note that this use of SWD depends also on your board design (pull-ups/downs,...), so read the data sheet carefully and test on a prototype.

If you can avoid that dual pin use: I would avoid it. Look for alternate UART pin function mappings.

hth

KnarfB

ARamt.1
ARamt.1Author
Associate
February 25, 2021

Is there any other option to communicate other than jtag?

KnarfB
Super User
February 25, 2021

I recommend going through "STM32 microcontroller debug toolbox" document.