pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

cmsis_dap.prefer_v1 is only effective in config file

Open elfmimi opened this issue 2 years ago • 1 comments

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.

elfmimi avatar Mar 28 '22 14:03 elfmimi

Thanks for pointing this out. 😄

flit avatar Apr 08 '22 22:04 flit