Skip to main content
MKova.1
Associate II
April 6, 2020
Solved

ST25RU3993-EVAL - Is there a way to use UART for debugging (so I can see output of printf function)?

  • April 6, 2020
  • 2 replies
  • 1025 views

Hi,

I'm using ST35RU3993-EVAL board without ST-LINK debugger; generating .bin file with Keil uVision5 IDE and uploading the firmware with the Reader suit GUI.

I would like to see output of printf function in the serial terminal. Is that possible, or UART is used only for communicating with the GUI?

Thanks,

Mirnesa

    This topic has been closed for replies.
    Best answer by Nick K

    Hello Mirnesa,

    On the PCB you find on the left side a pin called "UART LOG". This is the TX pin of a UART, which can be used to send out from the FW logging or debug information.

    Please use this UART pin (together with a GND pin) for logging and debugging.

    A example of howto would be the following code from main.c

    LOG("FW Version = %02d.%02d.%02d.%02d\n",FW_VERSION_MAJOR, FW_VERSION_MINOR, FW_VERSION_MICRO, FW_VERSION_BUILD);

    This code prints on the log UART the version number information at startup of the board.

    BR

    Nick

    2 replies

    Nick K
    Nick KBest answer
    ST Employee
    April 8, 2020

    Hello Mirnesa,

    On the PCB you find on the left side a pin called "UART LOG". This is the TX pin of a UART, which can be used to send out from the FW logging or debug information.

    Please use this UART pin (together with a GND pin) for logging and debugging.

    A example of howto would be the following code from main.c

    LOG("FW Version = %02d.%02d.%02d.%02d\n",FW_VERSION_MAJOR, FW_VERSION_MINOR, FW_VERSION_MICRO, FW_VERSION_BUILD);

    This code prints on the log UART the version number information at startup of the board.

    BR

    Nick

    MKova.1
    MKova.1Author
    Associate II
    April 9, 2020

    Hi Nick,

    I missed that one. Thanks :)

    Kind regards,

    Mirnesa