Skip to content

harden the flashing process on win pt2 #76

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

Merged
merged 2 commits into from
Jul 1, 2021
Merged

harden the flashing process on win pt2 #76

merged 2 commits into from
Jul 1, 2021

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Jul 1, 2021

Expands and completes #58
On windows when the board is touched at 1200bps it goes in bootloader mode (on a different COM port).
I used the correct approach in #58, but I forgot that the commandLine variable was being set before.. 🤦

The working principle is the following:

  1. The board (a samd once) is present on COM6 for example
  2. The board is touched at 1200bps
  3. The board comes bach online on a different COM (for example COM7)
  4. The uploader sketch must be uploaded keeping in mind this behaviur
  5. After the upload is complete the board returns to the previous COM port (in our example COM6) <- we were not considering this
  6. We open a serial connection to COM6 at 1000000bps to upload the firmware binary to the board.
  7. The end 🪂

@umbynos umbynos added type: bug os: windows Specific to Windows operating system labels Jul 1, 2021
@umbynos umbynos requested a review from a team July 1, 2021 15:54
@umbynos umbynos self-assigned this Jul 1, 2021
@umbynos
Copy link
Contributor Author

umbynos commented Jul 1, 2021

PS tested on win with a lot of boards connected at the same time (mkr1010, nano33iot, nanorp2040connect, mkr1000, unowifir2) and everithing seems to work flawlessly

Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The board comes bach online on a different COM (for example COM7)

image

@umbynos umbynos merged commit 0033831 into main Jul 1, 2021
@umbynos umbynos deleted the umbynos/fix_win branch July 1, 2021 16:09
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows Specific to Windows operating system type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants