Skip to main content
Visitor II
February 25, 2021
Question

Communication of STM32g030c6t6 using stlink v3 set

  • February 25, 2021
  • 1 reply
  • 1006 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.

    1 reply

    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.1Author
    Visitor II
    February 25, 2021

    Is there any other option to communicate other than jtag?

    Super User
    February 25, 2021

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