-
Notifications
You must be signed in to change notification settings - Fork 7.4k
west flash: dfu-util.exe not found, unnoticed by require() #89434
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
Quick note: I was able to use the dfu-util from Arduino 2.x install:
|
I am not very familiar with Windows deployments, however:
Is this directory in the current binary search path? If adding it fixes the bug, this might be a documentation bug, or unhelpful error message. Suggesting the user to check the presence for the |
It turns out is not in the search path on my Windows machine. Arduino installs it's over version(s) depending on It now works, that I copied a version of it to my user bin file (c:\users\kurte\bin) which is on my search path What confused me, is that it just worked fine on my Ubuntu machine, but it turns out I already had a copy Not sure if I just close this out, or somewhere there should be documentation about this? |
Very glad to hear that! It looks like a bug as the error messages should have been slightly different: zephyr/scripts/west_commands/runners/core.py Lines 795 to 812 in d26ed34
P.S.: It seems possible to specify a zephyr/scripts/west_commands/runners/dfu.py Lines 76 to 77 in d26ed34
|
Let me know if the new name for the issue is not fitting! |
Sounds good... Thanks |
Sorry, I don't have experience with this. Maybe @carlescufi can help? |
Describe the bug
I am trying build some of the zephyr examples and run them on an Arduino GIGA. In particular some of the
samples within samples/subsystem/input.
The west build completes:
However, when I try to flash the board (I double click on the reset button to put it into DFU mode...)
The command: west flash
fails:
If I run these same commands on my Ubuntu machine, the west flash succeeds.
Also note: With my Windows 11 machine. I have successfully built and programmed some
Teensy boards (PJRC: teensy40 teensy41 and teensymm with my PR code in place)
I am running Windows 11 Home 24H2 on DELL with Intel 12th generation I7...
To Reproduce
d:
cd zephyrproject\zephyr\samples\subsys\input\input_dump
Expected behavior
I expect it to write the program to the GIGA.
Impact
Stops me from using my Windows install, to try out stuff directly on Zephyr
I can still build the ArduinoCore-zephyr setup (Arduino with zephyr) on my windows machine,
by building the zephyr loader on WSL, copy the stuff back into windows setup and use the Arduino IDE
setup to flash... (Might be able to get that command to work for these programs by copying the built
hex file into the place that the Arduino command for burn bootloader is expecting the file... May try)
Logs and console output
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: