This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Enhance avrdude upload success detection and error handling#19
Merged
Alireza-Jahanbakhshi merged 2 commits intoStrongTheDev:mainfrom Apr 8, 2025
Merged
Conversation
* Improved runAvrdude function to better detect successful uploads by checking: - Exit code 0 - "avrdude done. Thank you." message - "bytes of flash verified" message * Fixed false "Upload failed" errors for successful operations * Enhanced output handling: - Combined stdout and stderr for success checking - Separate errorOutput for detailed error reporting - Returns structured result object with output, errorOutput, and exitCode * Updated uploadToMicrocontroller to use improved success detection * Added detailed console logging for upload results and errors * Maintained USBasp no-port requirement and fuse settings support * Improved overall error messages with more context
Owner
|
@Alireza-Jahanbakhshi, do you have Discord? I'd like you to join the channel at https://discord.gg/wvyFpCRu so that we can discuss development of the extension |
Collaborator
Author
|
@StrongTheDev, I’ve joined the channel. Please update the latest release in the GitHub repository. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This pull request improves the upload functionality in avr-utils by fixing false "Upload failed" errors and enhancing overall robustness and error reporting. The changes ensure successful uploads are correctly recognized and provide better diagnostics for debugging.
Changes
Improved Success Detection in runAvrdude:
Fixed False Failures:
Enhanced Error Handling:
Updated Upload Process:
Maintained Existing Features:
Documentation Updates:
Related Issues
Testing
Checklist
How to Test