Giter Club home page Giter Club logo

strtt's Introduction

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

strtt's People

Contributors

genekong avatar hitsmaxft avatar phryniszak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

strtt's Issues

Integration with cortex-debug

I've been working (slowly) on adding swo support for the stlink debugger in cortex-debug but then realized that rtt may be a better option. I would need to ask the author of cortex-debug, but my question is: would you be okay with using this program with cortex-debug? It would probably not be distributed but would be downloaded by vscode with a prompt.

The other part of this is that, although the javascript version can run natively in vscode, I don't think it has tcp implemented, which would be required. Also the cpp version is probably more performant the the javascript version, and including the sources could cause more issues. So I think the cpp version is the right choice.

Build fails with sockpp >= v0.8.0

Hi, thank you for this project, it is really useful to me.
I noticed that the project includes sockpp as a dependency in src/rtt/CMakeLists.txt, and the GIT_TAG specified there is master.
However, with recent versions of sockpp, the build fails with the following error:

/home/user/strtt/src/rtt/sysview.cpp: In member function ‘void SysView::run_server()’:
/home/user/strtt/src/rtt/sysview.cpp:98:32: error: ‘sockpp::socket_initializer::socket_initializer()’ is private within this context
   98 |     sockpp::socket_initializer sockInit;
      |                                ^~~~~~~~
In file included from /home/user/strtt/_deps/sockpp_content-src/include/sockpp/stream_socket.h:50,
                 from /home/user/strtt/_deps/sockpp_content-src/include/sockpp/acceptor.h:49,
                 from /home/user/strtt/_deps/sockpp_content-src/include/sockpp/tcp_acceptor.h:48,
                 from /home/user/strtt/src/rtt/sysview.h:21,
                 from /home/user/strtt/src/rtt/sysview.cpp:21:
/home/user/strtt/_deps/sockpp_content-src/include/sockpp/socket.h:124:9: note: declared private here
  124 |         socket_initializer();
      |         ^~~~~~~~~~~~~~~~~~

When I specify sockpp v0.7.1, the build succeds, but starting with the following version, v0.8.0, it fails.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.