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
-
Hello,
Here's the case I'm struggling with:
west flash
commands withopenocd
runner to flash mynrf52840dk_nrf52840
board 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_nrf52840
board.cmake file provides openocd config throughrunners.yaml
with 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.py
I'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.cmake
file 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-cmd
appends, and not overwrites.For now i resorted to just using
openocd
itself.If the solution doesn't yet exists I could work on that, the simplest solution I see is:
--ignore-runner-args
to clear any runner-specific args coming from runners.yaml.Beta Was this translation helpful? Give feedback.
All reactions