-
Notifications
You must be signed in to change notification settings - Fork 11
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
Comments
Does it not work also if you make the extension use locally installed Arduino CLI? |
This might be related: esp8266/Arduino#8962 |
I can try that. Where do I specify the path? I have the brew installed version. BillyOn Oct 28, 2024, at 5:30 PM, Lior ***@***.***> wrote:
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.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I am working with esp32c3 devices. I can successfully update its using the ide. Makes me think is something in the extension. BillyOn Oct 28, 2024, at 5:44 PM, Billy Willis ***@***.***> wrote:I can try that. Where do I specify the path? I have the brew installed version. BillyOn Oct 28, 2024, at 5:30 PM, Lior ***@***.***> wrote:
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.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
With the brew installed arduino-cli I get a different error. In this case I get
“A fatal error occurred: Could not open 192.168.101.132, the port doesn't exist
Error during Upload: Failed uploading: uploading error: exit status 2"
The port does exist and I can upload to it using the IDE.
Billy
On Oct 28, 2024, at 5:47 PM, Lior ***@***.***> wrote:
In vscode setting, in the Extension's settings, edit: "Arduino command path"
image.png (view on web)<https://github.com/user-attachments/assets/bbf6fd53-6bde-4ce0-8c3c-4c6b32fd25c9>
—
Reply to this email directly, view it on GitHub<#43 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAFFO5IXGIGSQAZ5OC4DO5TZ52PHZAVCNFSM6AAAAABQYKEEJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSGY4TMMBXGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yes. Use the https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_upload/#options
For example:
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 |
Thank you, this is useful. If I am manually entering the arduino-cli commands I can uses the flags to get the right thing, The issue I need to solve is a way to pass the upload fields through the Arduino vscode extension to the arduino-cli. I asm not that familiar with eh construction of the extension.
What would be great would be to have a filed in the arduino.json file to specify auth for ota.
Billy
On Oct 28, 2024, at 6:51 PM, per1234 ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub<#43 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAFFO5K6ONCDXJYEBMQKRZTZ525WHAVCNFSM6AAAAABQYKEEJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSHAYTSMJTG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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. |
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?
The text was updated successfully, but these errors were encountered: