Ignoring or changing west runner configuration from runners.yaml / board.cmake #45171
MaroMetelski
started this conversation in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Here's the case I'm struggling with:
west flashcommands withopenocdrunner to flash mynrf52840dk_nrf52840board not through default jlink interface, but using an external probe (which is an option supported by the physical board - just connect the probe to "debug in" port).nrf52840dk_nrf52840board.cmake file provides openocd config throughrunners.yamlwith some values I'd like to ignore or set to my own.Is there any way this could be done that I'm missing? By looking into
run_common.py,runners/openocd.pyI'm not able to find such solution. It seems that you can overwrite values residing under runners.yaml "common configuration values".zephyr/scripts/west_commands/run_common.py
Line 130 in 1e02dd0
But not those runner-specific in case of openocd runner.
Maybe I should somehow overwrite the
board.cmakefile itself through CMake?The most intuitive way to do so, at least for me, would be to just do something
west flash -r openocd --config <my_custom_config> --ignore-runner-args. In case of openocd runner the arguments can't be "forced out" by overwriting them, since, for example, adding new--pre-init-cmdappends, and not overwrites.For now i resorted to just using
openocditself.If the solution doesn't yet exists I could work on that, the simplest solution I see is:
--ignore-runner-argsto clear any runner-specific args coming from runners.yaml.Beta Was this translation helpful? Give feedback.
All reactions