0
\$\begingroup\$

I'm currently designing the debug port for my STM32L4R5 microcontroller. I'm planning to use the STLINKV2 debugger but it's using a 20 pin JTAG connector which has a big footprint for my PCB. I saw suggestions that I can use the Olimex 20pin to 10pin connector, but it seems like the Olimex connector didn't connect the TRSTN pin from the debugger to the Olimex. Is the TRSTN pin important?

And is there any example schematic to connect the Olimex board to a JTAG debugger? Thanks.

\$\endgroup\$
0
\$\begingroup\$

TRST(N) is optional for JTAG (https://en.wikipedia.org/wiki/JTAG).

However, you might choose to use SWD as opposed to JTAG. SWD is more modern and supported by the STM32L4 and STLINKV2 via that same connector. See this document (https://documentation-service.arm.com/static/5fce6c49e167456a35b36af1).

\$\endgroup\$
3
  • \$\begingroup\$ Will the Cortex debug connector and Cortex Debug +ETM connector work with the STLINKV2 debugger? \$\endgroup\$ – cy1125 Jun 9 at 14:11
  • \$\begingroup\$ Yes, you can put the Cortex Debug Connector on your board and use the Olimex adapter with the STLINKV2. All the pinouts are published so just double check them. If the toolchain supports SWD then I would opt for SWD over JTAG (the connector/adapter supports both). The Cortex Debug +ETM connector is large like the 20-pin connector you're trying to avoid. I don't know why you want that. I suppose it would work if you have the an adapter cable that minds the pinouts. \$\endgroup\$ – kkrambo Jun 9 at 17:59
  • \$\begingroup\$ I doubt whether the STLINKV2 supports the ETM/trace feature so I don't think you'd be gaining any functionality from the Cortex Debug +ETM connector. \$\endgroup\$ – kkrambo Jun 9 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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