Skip to main content
Divesh Dutt
Associate III
December 26, 2018
Question

Use jtag uart

  • December 26, 2018
  • 3 replies
  • 1629 views

Hi can i use the same uart as my JTAG debugger uses to communicate with my Lidar i am using nucleo-64 board.It is uses pins PA2 and PA3 to load the program?

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    December 26, 2018

    I don't think JTAG debuggers use USART.

    If you're using the ST-LINK on the NUCLEO, you should be able to use the PB3 SWO pin and have two way comms to the debugger using the Serial Wire Viewer (SWV) on CM3/CM4/CM7 cores which is independent of the USART.

    The USART/VCP combo on the NUCLEO-64 tends to conflict with the ARDUINO shield connectivity, you want to commit to one or the other.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Divesh Dutt
    Associate III
    December 27, 2018

    How can i use switch pb3 to switch UART from debugger to communication?

    Tesla DeLorean
    Guru
    December 27, 2018

    The SWV uses the ITM_SendChar() function, on the PC side Keil and TrueStudio etc, and the ST-LINK Utilities proved a debug console.

    http://www.keil.com/appnotes/files/apnt_230.pdf

    PB3 is part of the JTAG pins, on some ST boards you need to double check that a Solder-Bridge is made. This is not supported on the CM0 parts, but then neither is JTAG

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..