{"id":46859151,"url":"https://github.com/jmacheta/jlink_rtt-cmake","last_synced_at":"2026-03-10T17:49:17.029Z","repository":{"id":151067242,"uuid":"608093678","full_name":"jmacheta/jlink_rtt-cmake","owner":"jmacheta","description":"cmake library that enables support for Jlink RTT in your C++ or C project out of the box","archived":false,"fork":false,"pushed_at":"2024-12-13T17:00:17.000Z","size":57,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-13T17:45:21.457Z","etag":null,"topics":["c","cmake","embedded","jlink","segger-rtt"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmacheta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-01T10:00:32.000Z","updated_at":"2024-12-13T16:54:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1d02417-1534-4e9e-a0c6-7971a26136ad","html_url":"https://github.com/jmacheta/jlink_rtt-cmake","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jmacheta/jlink_rtt-cmake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmacheta%2Fjlink_rtt-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmacheta%2Fjlink_rtt-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmacheta%2Fjlink_rtt-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmacheta%2Fjlink_rtt-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmacheta","download_url":"https://codeload.github.com/jmacheta/jlink_rtt-cmake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmacheta%2Fjlink_rtt-cmake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30345839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cmake","embedded","jlink","segger-rtt"],"created_at":"2026-03-10T17:49:16.537Z","updated_at":"2026-03-10T17:49:17.018Z","avatar_url":"https://github.com/jmacheta.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jlink RTT CMake library\n\nThis package wrapps official SEGGER RTT library, bundled with [J-link Software](https://www.segger.com/downloads/jlink/), into CMake library.\n\n## Installation\n\nThe easiest way is to use built-in CMake FetchContent:\n\n```cmake\ninclude(FetchContent)\nFetchContent_Declare(\n    jlink_rtt\n    GIT_REPOSITORY https://github.com/jmacheta/jlink_rtt-cmake\n    GIT_TAG main\n)\n\nFetchContent_MakeAvailable(jlink_rtt)\n```\n\nAlternatively, you can add this repo as a submodule, and simply use ```add_subdirectory(\u003cpath_to_cubemx_cmake_in_your_tree\u003e)```\n\n## Usage\n\nAs with every CMake library, the only thing you need to do is link with the library by\n\n```cmake\ntarget_link_libraries(\u003cyour_component\u003e PUBLIC jlink_rtt)\n```\n\nThe provided package comes with example configuration file in src/Config. If your preprocessor supports __has_include command (like GCC and Clang), and the example config suits your needs, you don't need to do anyting.\nOtherwise you need to inject include directory containing config file to this library:\n\n```cmake\ntarget_include_directories(jlink_rtt PUBLIC \u003cPATH_TO_DIRECTORY_WITH_CONFIG_HEADER\u003e) # the visibility MUST be public - the file is also included by public API header\n```\n\nThat's basically it. You may also with to include SEGGER's _write syscall implementation. To do so, define\n\n```cmake\nset(JLINK_RTT_USE_SYSCALLS ON)\n```\n\nbefore fetching library.\n\n## Toolchain-dependent behaviour\n\n- When preprocessor supports __has_include command, it will look for \"custom\" SEGGER_RTT_Conf.h file in provided include directories. If it fails, it will fall back to sample configuration from src/Config/SEGGER_RTT_Conf.h. If preprocessor has no__has_include support, it will simply include SEGGER_RTT_Conf.h, which may fail if none is find.\n\n## Non-Affiliation Disclaimer\n\nThis package is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by SEGGER. All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmacheta%2Fjlink_rtt-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmacheta%2Fjlink_rtt-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmacheta%2Fjlink_rtt-cmake/lists"}