Skip to content

tools/mpremote: add a baudrate argument#19272

Open
josuah wants to merge 1 commit into
micropython:masterfrom
josuah:pr_mpremote_baud
Open

tools/mpremote: add a baudrate argument#19272
josuah wants to merge 1 commit into
micropython:masterfrom
josuah:pr_mpremote_baud

Conversation

@josuah
Copy link
Copy Markdown

@josuah josuah commented May 28, 2026

Summary

Add an argument to select the serial console baudrate, for the unusual systems that do not use 115200.

This can be compbined as usual with other arguments, such as mpremote connect -b 1000000 run script.py.

Testing

With an in-house device a all boards I have use sensible baudrates, but still:

mpremote connect -b 156200 /dev/ttyUSB1
mpremote connect -b 156200 /dev/ttyUSB1 run ~/test.py

Trade-offs and Alternatives

This does not work along with aliases like a1 -b 115200 or u1 -b 115200 but might be quite rare to need this.

Generative AI

no no

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.47%. Comparing base (1c63211) to head (992bbad).
⚠️ Report is 72 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19272   +/-   ##
=======================================
  Coverage   98.47%   98.47%           
=======================================
  Files         176      176           
  Lines       22845    22845           
=======================================
  Hits        22497    22497           
  Misses        348      348           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

Code size report:

Reference:  esp32: Make a generic sdkconfig.flash_qio_80m config snippet. [4fd7295]
Comparison: tools/mpremote: Add a '--baud <n>' flag. [merge of 992bbad]
  mpy-cross:    +0 +0.000% 
   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
      esp32:    +0 +0.000% ESP32_GENERIC
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@josuah josuah force-pushed the pr_mpremote_baud branch from 7901020 to 992bbad Compare May 28, 2026 11:01
Add an argument to select the serial console baudrate, for the unusual
systems that do not use 115200. This can be compbined as usual with other
arguments, such as `mpremote connect -b 1000000 run script.py`.

Signed-off-by: Josuah Demangeon <me@josuah.net>
@dpgeorge dpgeorge added the tools Relates to tools/ directory in source, or other tooling label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Relates to tools/ directory in source, or other tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants