Skip to content
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

Optimized 1200-bps touch and upload port detection. Fixed some rare upload-fail corner cases. #1267

Merged
merged 5 commits into from
Apr 22, 2021

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Apr 16, 2021

/cc @ubidefeo

@cmaglie cmaglie requested a review from ubidefeo April 16, 2021 14:41
@cmaglie cmaglie force-pushed the experimental-wait-plus-touch branch from ab4bb63 to a262ded Compare April 19, 2021 07:18
It should be an equivalent change, but it's better when reading code.
Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

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

Tests done successfully on:

linux with hub

  • arduino:avr:uno
  • arduino:avr:mega
  • arduino:avr:leonardo
  • arduino:avr:leonardoeth
  • arduino:megaavr:nona4809
  • arduino:mbed:nano33ble
  • arduino:mbed:nanorp2040connect
  • arduino:megaavr:uno2018
  • arduino:samd:mkrwifi1010
  • arduino:samd:nano_33_iot
  • arduino:samd:arduino_zero_native
  • arduino:samd:arduino_zero_edbg
  • arduino:samd:mkrzero
  • arduino:samd:mkr1000
  • arduino:sam:arduino_due_x_dbg
  • arduino:sam:arduino_due_x

windows with hub

  • arduino:samd:mkrzero
  • arduino:sam:arduino_due_x_dbg
  • arduino:samd:mkr1000
  • arduino:megaavr:uno2018
  • arduino:avr:leonardoeth
  • arduino:megaavr:nona4809
  • arduino:mbed:nanorp2040connect
  • arduino:mbed:nano33ble
  • arduino:samd:arduino_zero_edbg
  • arduino:avr:mega
  • arduino:samd:nano_33_iot
  • arduino:mbed:envie_m7

Mac OS 11.2.3 Big Sur - Intel
Tested with 2 USB-C to multiple USB-A, unpowered
Anker
Satechi

  • arduino:samd:arduino_zero_native
  • arduino:samd:arduino_zero_edbg
  • arduino:mbed:envie_m7
  • arduino:sam:arduino_due_x
  • arduino:sam:arduino_due_x_edbg
  • arduino:megaavr:nona4809
  • arduino:mbed:nanorp2040connect
  • arduino:mbed:nano33ble
  • arduino:samd:mkrwifi1010
  • arduino:samd:nano_33_iot
  • arduino:samd:mkrzero
  • arduino:samd:mkr1000
  • arduino:samd:mkrgsm1400
  • arduino:avr:mega
  • arduino:megaavr:uno2018
  • arduino:avr:leonardo
  • esp32:esp32:esp32 (M5 Stack Core 2)

@cmaglie cmaglie merged commit 5aa4248 into arduino:master Apr 22, 2021
@cmaglie cmaglie deleted the experimental-wait-plus-touch branch April 22, 2021 15:41
@cmaglie cmaglie changed the title Experimental: optimized touch + wait Optimized 1200-bps touch and upload port detection. Fixed some rare upload-fail corner cases. Apr 22, 2021
silvanocerza pushed a commit that referenced this pull request May 10, 2021
* Refactored upload output and debug info and removed unused functions

* Skip serial port touch if the port is not connected

* Perform touch only if required

* Slightly change test to set serial port properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants