Skip to content
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

scons.py - misorders extra_args to dfu-util #377

Open
benagricola opened this issue Apr 29, 2024 · 0 comments
Open

scons.py - misorders extra_args to dfu-util #377

benagricola opened this issue Apr 29, 2024 · 0 comments

Comments

@benagricola
Copy link

Trying to program a pico-ice using apio upload, triggering dfu-util and receiving the following error:

(base) ➜  fpga git:(main) ✗ apio upload                                                                          
[Mon Apr 29 20:42:46 2024] Processing pico-ice
---
dfu-util -d 1209:b1c0 -a 0 -D --reset hardware.bin
Error: Unexpected argument: hardware.bin
Usage: dfu-util [options] ...

This is because the --reset argument is inserted between the -D arg and the build file.

My quick fix for this locally was to put the extra_args block above the args block but I don't know if this would cause issues with other programmers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant