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

makefiles/tools/serial.inc.mk: Allow detection of debug adapter #19119

Merged
merged 3 commits into from
Feb 24, 2023

Commits on Feb 24, 2023

  1. dist/tools/usb-serial/ttys.py: Allow combining simple formats

    For scripts it can be useful to output not only one, but multiple
    formats (e.g. to obtain both path and serial of a TTY). The script
    now support passing multiple formats.
    
    Note that only simple formats can be combined, as the JSON and markdown
    table won't mix well with any other format.
    maribu committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    48a02d6 View commit details
    Browse the repository at this point in the history
  2. makefiles/tools/serial.inc.mk: Allow detection of debug adapter

    Boards with an integrated debugger/programmer that also provides the
    serial as UART <--> USB adapter, the TTY serial matches the serial of
    the programmer.
    
    This adapts the `serial.inc.mk` to set the `DEBUG_ADAPTER_ID` to the
    TTY serial if (and only if) `MOST_RECENT_PORT` *and*
    `DEBUG_ADAPTER_ID_IS_TTY_SERIAL` both have a value of `1`. Boards with
    an integrated programmer are expected to set
    `DEBUG_ADAPTER_ID_IS_TTY_SERIAL` to `1` in their `Makefile.include`.
    maribu committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    015ee05 View commit details
    Browse the repository at this point in the history
  3. boards: Provide debug adapter ID from serial where possible

    Set `DEBUG_ADAPTER_ID_IS_TTY_SERIAL` to `1` for those boards to allow
    automatic detection of the debug adapter with `MOST_RECENT_PORT=1`.
    maribu committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    64d4aec View commit details
    Browse the repository at this point in the history