phryniszak / strtt

Segger RTT console using ST-link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strtt

Segger RTT client using ST-link debugger.

Options:

-v debugLevel where debugLevel from -3 to 4 when -3 is equal to silent output

-ramstart Ram Start address where the program is looking for RTT( hex,dec model supported).

-ramsize ramAmmount where ramAmmount is the range where the program is looking for RTT.

-tcp use tcp connection to st-link gdb server (https://www.st.com/en/development-tools/st-link-server.html)

Windows

Folder windows_bin_64 includes windows 64 bit executable. If the program returns immediately try to run it with -v 4 option. Return value (-4) indicates missing stlink drivers available as STSW-LINK009 from st.com.

Using with STM32CubeIDE

Thanks to the -tcp option it is possible to communicate with a target using the RTT channel while debugging in STM32CubeIDE. In debug options "Shared ST-LINK" must be checked.

RTT and STM32CubeIDE

Internals

Program is using a refactored driver from the openocd project.

Usage example

# in most cases default settings are OK

./strtt

# If you want to connect your App in Debug running then share your stlink and use tcp connect to

./strtt -ramstart 0x30020000 -tcp

SYSTEMVIEW

One experimental option is to use this program with Segger SystemView using tcp connection. To use it, the program must be built with the SYSVIEW option.

cmake -DSYSVIEW=1 ..

RTT in browser

You can also try to use web browser version:

https://phryniszak.github.io/jstlink/sample_rtt/

https://github.com/phryniszak/jstlink

About

Segger RTT console using ST-link

License:GNU General Public License v3.0


Languages

Language:C 93.7%Language:C++ 5.3%Language:Assembly 0.6%Language:JavaScript 0.3%Language:CMake 0.1%