Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

west: Add west rtt command #75508

Merged
merged 3 commits into from
Sep 10, 2024
Merged

west: Add west rtt command #75508

merged 3 commits into from
Sep 10, 2024

Commits on Sep 10, 2024

  1. west: runners: Add west rtt command with pyocd implementation

    This command runs separately from a debug server, instead of attaching
    to a running server. This is both the easiest out of the box experience,
    and also should be possible to implement consistently for most runners.
    
    This commit includes an initial implementation for pyocd.
    
    Signed-off-by: Tobias Pisani <[email protected]>
    topisani committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    c3825fb View commit details
    Browse the repository at this point in the history
  2. west: runners: Implement the west rtt command for openocd

    This was non-trivial, as openocd is a bit weird to work with. Using only
    commands passed with '-c' arguments, I couldn't get it to reliably resume
    (or just not halt) the target when started. I tried using the 'sleep'
    command, and various 'configure -event XX { resume }' events, but nothing
    panned out, as it seems to always halt after all `-c` commands have been
    run.
    
    To avoid that, this waits for the TCL RPC port to be up, and sends a
    resume command there. This works reliably.
    
    Signed-off-by: Tobias Pisani <[email protected]>
    topisani committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    fc5b665 View commit details
    Browse the repository at this point in the history
  3. west: runners: Implement the west rtt command for jlink

    Moves the telnet client into runners/core.py as well, as this is now shared
    between openocd and jlink.
    
    Signed-off-by: Tobias Pisani <[email protected]>
    topisani committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    74227f2 View commit details
    Browse the repository at this point in the history