Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Complete the Segger J-Link driver

オープン
#60 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, python

調査の方向性

Start with public/prism/drivers/segger/Segger.py and hwdrv_segger.py, then compare hwdrv_nrfjprog.py, hwdrv_stlinkv3mods.py, NRFProg, and STLINKprog for discovery and subprocess patterns. Check the a08 Dockerfile for the bundled J-Link path and docs/source/prism_drivers.rst for the current listing. Done means probe discovery, tool version checking, driver commands, coexistence guidance, README, example script, and driver documentation are complete and validated with a J-Link and powered target in the Prism container.

索引モデルが issue の本文から書いたものです。

説明

enhancement

public/prism/drivers/segger/ is an unfinished placeholder. Split out of #58.

Current state

  • Segger.py has an empty Segger class. __init__ calls self._get_version(), which does not exist, so creating the driver raises AttributeError.
  • hwdrv_segger.py finds probes by ID_SERIAL containing SEGGER_J-Link_, but does not create a hwdrv object or check the tool.
  • README.md says to install the J-Link .deb on the host. That's out of date.
  • No example script uses this driver.

What's already in place

  • J-Link is installed in the Prism Docker image at /opt/SEGGER/JLink (a08 Dockerfile, ARG JLINK_VER). No host install, nothing under public/tools/.
  • The image stays on V8.72. nrfprog's nrfjprog 10.24.2 has errors and is about 7 s slower with J-Link V9.x (a08 c424856), so test any J-Link bump against nrfprog too.

Work

  • Segger.py: run JLinkExe (/opt/SEGGER/JLink/JLinkExe) per probe serial (-USB <sn>) with a command file, e.g. connect, erase, loadfile, verify, reset. Return subprocess.run results like NRFProg and STLINKprog do.
  • hwdrv_segger.py: follow hwdrv_nrfjprog.py / hwdrv_stlinkv3mods.py. Check the tool version in discover_channels() and return -1 with an ERROR notice on failure. Build one entry per probe serial, sorted by USB path.
  • Decide how this driver and nrfprog coexist. Both claim SEGGER probes, so a script should list only one of them.
  • Rewrite README.md: J-Link is in the image, debugging steps, docker exec prism /opt/SEGGER/JLink/JLinkExe ....
  • Add an example script under public/prism/scripts/example/.
  • Test with a J-Link and a powered target in the Prism container.
  • Update docs/source/prism_drivers.rst (the driver is listed as "placeholder, not complete").
主要言語
C++
スター
4
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sistemicorp/scripts のほかの issue

sistemicorp/scripts の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。