pyOCD
pyOCD copied to clipboard
cmsis_dap.prefer_v1 is only effective in config file
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.
Thanks for pointing this out. 😄