[microTVM] Arduino retry on flash failure#12114
Merged
areusch merged 3 commits intoapache:mainfrom Jul 19, 2022
Merged
Conversation
areusch
approved these changes
Jul 19, 2022
Contributor
|
@guberti Thanks for the enhancement, I remember facing this issue sometimes in my setup in the past. The changes LGTM (although already merged by @areusch -- he merged right when I was about to finish the review lol, but no worries since you tagged me 4 days ago so fair enough! heh). The only thing I think that needs to get fixed on a follow-on PR are these two f-strings here: Cheers. |
Member
Author
|
Oops - nice catch @gromero! I'll send a follow up to fix that. |
Contributor
Contributor
Member
Author
|
Oops, this totally slipped my mind. Thanks for the change @gromero ! |
xinetzone
pushed a commit
to daobook/tvm
that referenced
this pull request
Nov 25, 2022
* Retry on flash failure * Add unit test * Style improvements for Arduino api server
mikeseven
pushed a commit
to mikeseven/tvm
that referenced
this pull request
Sep 27, 2023
* Retry on flash failure * Add unit test * Style improvements for Arduino api server
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.
Previously, the
flashfunction would sometimes lock up indefinitely without failing, stalling for hours or more. This pull request changes it to have a 60-second timeout (more than enough time to upload a sketch), and adds the ability to retry the command if it fails.This pull request also adds a unit test for this functionality, and also makes a few changes to
microtvm_api_server.pyto better comply withpylint.cc @alanmacd @gromero @mehrdadh