Repository navigation
Add Arduino Uno firmware upload support (avrdude bundling, GUI upload, release packaging) - #8
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
.hexfrom the Windows app without using Arduino IDE/CLI or command-line tooling..hexartifacts and not compiling raw.inosource inside the app.avrdudeuploader and that packaging/CI validate presence and assembly of uploader files.Description
gui/portable_avr_control_studio.py, addingfind_avrdude_tool,validate_upload_request, and command-construction helpers, aUse bundled firmwarebutton, and anUpload Firmware to Arduino Unoaction that disconnects serial, runsavrdudein a background thread, streams stdout/stderr to the Logs tab, and shows clear dialogs on completion.release/scripts/assemble_customer_package.pyto require staged Windows uploader files underrelease/artifacts/windows/tools/avrdude/, fail with a clear error if missing or incomplete, and copy them into the customer package undertools/avrdude/..github/workflows/release-build.ymlto install Arduino CLI on the Windows job, locate and stage the Arduino AVRavrdudefiles intorelease/artifacts/windows/tools/avrdude/, and include staged uploader files in artifact uploads and checksum generation; updated.github/workflows/checks.ymlto add smoke tests for uploader command construction/validation and package assembly with staged uploader files.README.md,docs/customer_handoff.md,docs/PACKAGING.md,docs/testing.md,release/*templates and checklists to explain that the app uploads prepared.hexartifacts only, does not compile raw.inosource, that upload success is not physical hardware validation, and to document the stagedtools/avrdude/packaging expectations.Testing
python -m py_compile gui/portable_avr_control_studio.py release/scripts/assemble_customer_package.pyand the compilation succeeded.checks.yml) exercisingparse_serial_lineandvalidate_upload_requestwith a temporarytools/avrdudefixture and various validation failure cases; these tests passed locally.python release/scripts/assemble_customer_package.py --helpand verified behavior; ran assembly with dummy EXE/HEX and staged uploader files underrelease/artifacts/windows/tools/avrdude/and confirmed the staged package and ZIP containtools/avrdude/avrdude.exe,avrdude.conf, and support files.release/artifacts/windows/tools/avrdude/must be staged first.arduino-cli compile --fqbn arduino:avr:uno firmware/PortableAVRControlStudiocould not be executed locally here becausearduino-cliis not installed in this environment; the release workflow is configured to perform the Uno compile and uploader staging on the CI Windows job.All automated smoke/unit checks added or modified in this change passed in the local verification steps above; the Arduino CLI compile step is expected to run in CI during the release build job.
Codex Task