Liberation serial debugging (using JLink SEGGER RTT to print and enter debug information)

    Very simple, first download the code from Jlink RTT official website, and then add these four files to your project going, and add in the main project SEGGER_RTT.h file. Related download links ( click to open a link ).

    After use SEGGER_RTT_printf (0, "Test% d % s% x \ n", count, "123", 0x10);  print debug information, opens the J-Link RTT Viewer JLINK installation directory, you can see the debugging information . Preliminary tests can not seem to print floating point data.

Print information is as follows:




2, RTT input detection

    SEGGER_RTT_Read added first in the program (0, rtt_buf, sizeof (rtt_buf));

    Secondly select Sending / Send on Enter Input J- Link RTT Viewer console inside, and then select None End of Line

    This information can be entered by the lower input box, press Enter to send


    In this way, the program which receives information input box is an array rtt_buf input.


    This tool is very easy to use. There may need to refer to the next.




Guess you like

Origin blog.csdn.net/kangerdong/article/details/82664848