8000 Unable to perform OTA updates · Issue #43 · vscode-arduino/vscode-arduino · GitHub
[go: up one dir, main page]

Skip to content

Unable to perform OTA updates #43

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

Open
billy27607 opened this issue Oct 28, 2024 · 9 comments
Open

Unable to perform OTA updates #43

billy27607 opened this issue Oct 28, 2024 · 9 comments

Comments

@billy27607
Copy link

When one tries to perform an OTA update it fails.

When attempting using the Arduino upload command the error message "user input not supported in non interactive mode" is thrown. This appears to be because a password is expected and there is no mechanism to enter it. This happens even if the password requirement is disabled.

When attempting using the Arduino CLI upload command the error message "Error: unknown flag: --build-path" is thrown. There is no --build-path flag in the current arduino-cli upload command.

Between the two this effectively breaks the use of ota in projects. This is reproducible. Is there a way to specify a password to arduino-cli to make this work?

@lersi
Copy link
lersi commented Oct 28, 2024

Does it not work also if you make the extension use locally installed Arduino CLI?
I want to make sure if there is a problem with the bundled Arduino CLI tools.

@adiazulay
Copy link

This might be related: esp8266/Arduino#8962

Uh oh!

There was an error while loading. Please reload this page.

@billy27607
Copy link
Author
billy27607 commented Oct 28, 2024 via email

@lersi
Copy link
lersi commented Oct 28, 2024

In vscode settings, in the Extension's settings, edit: "Arduino command path"

image

@billy27607
Copy link
Author
billy27607 commented Oct 28, 2024 via email

@billy27607
Copy link
Author
billy27607 commented Oct 28, 2024 via email

@per1234
Copy link
per1234 commented Oct 28, 2024

Is there a way to specify a password to arduino-cli to make this work?

Yes. Use the --upload-field flag:

https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_upload/#options

-F, --upload-field key=value        Set a value for a field required to upload.

For example:

arduino-cli upload --upload-field "password=correcthorsebatterystaple" ...

In case you want to learn about how these "user provided fields" are configured in Arduino boards platforms, the documentation is here:

https://arduino.github.io/arduino-cli/latest/platform-specification/#user-provided-fields

You can see it done by the "esp32" boards platform here:

https://github.com/espressif/arduino-esp32/blob/3.0.7/platform.txt#L330-L332

@billy27607
Copy link
Author
billy27607 commented Oct 29, 2024 via email

@billy27607
Copy link
Author

Forgive me, but I am not really familiar with vscode extensions. If there a way to have this extension show the arduino-cli commands that it is issuing for the compile and build steps.

5E65

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

4 participants
0