Skip to content

wind10 compile output file path Error #90

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

Closed
berry0511 opened this issue Nov 13, 2018 · 4 comments
Closed

wind10 compile output file path Error #90

berry0511 opened this issue Nov 13, 2018 · 4 comments

Comments

@berry0511
Copy link

berry0511 commented Nov 13, 2018

image
When i compile the sketch, the output file path cannot be found.

image
In this img, the windows showed cannot create the floder because the specific floder is the same name with the sketch file "test.ino".

so I tried to change the output file path to the floder same as test.ino with command below

arduino-cli.exe compile --fqbn arduino:avr:uno F:\arduino\cli\test\test.ino -o F:\arduino\cli\test\ --debug

image
it works!

But, when i'm doing upload process, same question occured.
image
cannot create the path.

And the I tried to specify the upload file with command below
arduino-cli.exe upload -p COM4 --fqbn arduino:avr:uno -i F:\arduino\cli\test\test.hex

image
failed :(

so maybe we can change the default output compile file path or we can specify the upload hex file manully?

@cmaglie
Copy link
Member

cmaglie commented Nov 13, 2018

Thanks for the bug report.

so maybe we can change the default output compile file path or we can specify the upload hex file manully?

Yes, try use -i path flag on upload.

@cmaglie
Copy link
Member

cmaglie commented Nov 13, 2018

Could you post the output with the --debug option?
What is F:? I mean it's a real hard-drive or it's some sort of network storage?
Do you have any clue why the CLI can't create the output file?

@berry0511
Copy link
Author

Could you post the output with the --debug option?
What is F:? I mean it's a real hard-drive or it's some sort of network storage?
Do you have any clue why the CLI can't create the output file?

I have found the question:
this is my cmd arduino-cli.exe compile --fqbn arduino:avr:uno F:\arduino\cli\test\test.ino --debug
my path points to F:\arduino\cli\test\test.ino, test.ino is my sketch.
and then I change the path to F:\arduino\cli\test, it works fine.

SO, here's my clue:

  1. When executing the compile command, don't specify the sketch file, specify the folder where the sketch file is located.
  2. When I specify the sketch file, I have to use -o flag to change the default output file path. But in this way I can't upload the hex file.

@berry0511
Copy link
Author

I think it's not a bug, close it

per1234 added a commit that referenced this issue Aug 9, 2021
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

2 participants