The ARM Cortex-M 10-pin debug connector has five interesting signals, in the original PDF they're named:

  • SWO / TDO
  • NC / TDI
  • nRESET

For MCUs which only support SWD and which might even not have SWO (such as the STM32F030), I'm assuming the wiring is as follows:

  • SWDIO / TMS: PA13 ("SWDIO")
  • SWDCLK / TCK: PA14 ("SWCLK")
  • SWO / TDO: Open
  • NC / TDI: Open
  • nRESET: NRST (Chip reset)

Is the assumption that nRESET means chip reset correct?

Because if it is, how about a larger device like an STM32F103:

  • NC / TDI: PA15 ("JTDI")
  • nRESET: NRST (Chip reset) or PB4 (JNTRST)

Here, it's not clear where to connect nRESET anymore: To the chip reset signal (NRST) or the JTAG reset signal (JNTRST)?

Additionally, is it good practice to hook up both SWD and JTAG connection to a device that supports both (like the STM32F103)? If such a device should be only connected to SWD, does the meaning of nRESET change (i.e., when using JTAG maybe it's connected to JNTRST, but when only using SWD it's connected to NRST)?

  • 1
    \$\begingroup\$ I think you need to add a link for the STM32F103 datasheet and point us to the section that describes the NRST and JNTRST inputs. And don't make any assumptions...read the datasheet. \$\endgroup\$ Jul 16, 2019 at 11:45

1 Answer 1


nRESET and JNTRST do not fulfill the same purpose.

nRESET is full chip reset.
JNTRST is jtag reset, which is used for boundary scan.

The small 10 pin ARM SWD connector does not connect to JNTRST, that's a JTAG feature. You need the 20 pin version for that.

As also described in the manual of the ST Link V2, which has the 20 pin connector. enter image description here
Note that NRST is always NRST.

nRESET is also optional. Only if you intend to disable access to SWDIO and SWCLK a full chip reset by the programmer is required.

I often add a non-populated resistor in series with NRST to the programming connector to reduce risk of problems in the field. I can add this for prototypes, where it might be required. Production programming is not impeded by this.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.