-
Notifications
You must be signed in to change notification settings - Fork 7.4k
"west flash" stopped working #38272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @holgerschurig , Thank you for bring this to us. I just update my env and try reproduce issue listed. This is the resulting:
My steps were:
Can you check again and report? It will be nice if you can perform a check using Zephyr OpenOCD version too. |
Huh? "git fetch upstream" yields "fatal: 'upstream' does not appear to be a git repository". It might be that you have an "upstream" in your .git/config because of read/write access? I did the anonymous clone via "git clone https://github.com/zephyrproject-rtos/zephyr.git" originally. So instead I did the common thing that is quite normal with git: "git pull". I am now at: ´``
schurig@desktop: The cmake-policies(7) manual explains that the OLD behaviors of all -- Application: /home/schurig/d/v73/zephyr/samples/basic/blinky [138/145] Linking C executable zephyr/zephyr_prebuilt.elf [145/145] Linking C executable zephyr/zephyr.elf
|
BTW; i went to some more hoops :-) I used
to check for this superfluous
After this commit, the empty openocd_search entry started to appear. |
Hi @holgerschurig , Could you try this patch: diff --git a/cmake/flash/CMakeLists.txt b/cmake/flash/CMakeLists.txt
index 68785f04e3..28e573f317 100644
--- a/cmake/flash/CMakeLists.txt
+++ b/cmake/flash/CMakeLists.txt
@@ -53,8 +53,8 @@ function(runners_yaml_append_config)
endif()
if(OPENOCD)
runners_yaml_append(" openocd: ${OPENOCD}")
- runners_yaml_append(" openocd_search:")
if(OPENOCD_DEFAULT_PATH)
+ runners_yaml_append(" openocd_search:")
runners_yaml_append(" - ${OPENOCD_DEFAULT_PATH}")
endif()
endif() |
When enable thread awareness feature for OpenOCD the search path was converted to a list. In some environments OPENOCD_DEFAULT_PATH may not be defined. That create an empty search path list system fails. This add a test to skips fill search_args with openocd_search values when list is empty. Fixes zephyrproject-rtos#38272. Signed-off-by: Gerson Fernando Budke <[email protected]>
@nandojve I hit this issue as well and tried your patch above: #38272 (comment) |
When enable thread awareness feature for OpenOCD the search path was converted to a list. In some environments OPENOCD_DEFAULT_PATH may not be defined. That create an empty search path list system fails. This add a test to skips fill search_args with openocd_search values when list is empty. Fixes #38272. Signed-off-by: Gerson Fernando Budke <[email protected]>
Describe the bug
When I run "west flash", I get a long backtrace:
The issue is that build/zephy/runners.yaml now contains an empty openocd_search: entry:
Deleteing this superfluous
openocd_search:
entry fixes my issue. So my guess is that c3db83b has the bug.To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: