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

@josuah josuah commented May 28, 2026

Copy link
Copy Markdown

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

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.47%. Comparing base (44a569b) to head (18496de).

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

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown

Code size report:

Reference:  rp2/CMakeLists.txt: Require boards to define PICO_FLASH_SIZE_BYTES. [44a569b]
Comparison: tools/mpremote: Add a '--baud <n>' flag. [merge of 18496de]
  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
@dpgeorge dpgeorge added the tools Relates to tools/ directory in source, or other tooling label May 28, 2026
@josuah josuah force-pushed the pr_mpremote_baud branch from 992bbad to 18496de Compare May 29, 2026 10:18
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>
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