pyocd / pyocd/pyOCD

cmsis_dap.prefer_v1 is only effective in config file

Open
#1,355 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
1.5k
Forks
560
Avg merge
1h 41m
Merged PRs (30d)
3

Description

Setting cmsis_dap.prefer_v1 in pyocd.yaml works fine.
for example, like this.

cmsis_dap.prefer_v1: true

Specifying it in the command line has no effect.
-O cmsis_dap.prefer_v1=true

This is because at this point what it gets is a default session object which do not carry information from _args.options .

In the document it is stated "primarily intended for testing" . so its behaviour need not be fixed, but then the documentation needs fix.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review docs/options.md at the linked option entry and compare its description with the reported -O cmsis_dap.prefer_v1 behavior and the pyocd.yaml example. Update the documentation so the option's supported usage and limitations are explicit; done means the command-line behavior is no longer described misleadingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.