Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

How to specify an override for the default serial port used for flashing firmware via flash_firmware.sh?

Open
#450 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
shell
Domain
cli, embedded-iot

Research direction

Start by inspecting flash_firmware.sh and the ros2 run micro_ros_setup flash_firmware.sh entry point to see how the default USB serial port is selected. Add a way to pass a device such as /dev/ttyUSB1, then verify that flashing targets the requested port when multiple USB devices are connected.

Written by the indexing model from the issue text.

Description

Issue template

  • Hardware description: Ubuntu 20.04 (Agent), ESP32 (Client)
  • RTOS: FreeRTOS
  • Installation type: micro_ros_setup flash_firmware.sh
  • Version or commit hash: galactic
Steps to reproduce the issue

Running ros2 run micro_ros_setup flash_firmware.sh defaults to the first available USB serial port. However, if I have a few MCUs connected -- say USB0, USB1, USB2 -- and I only want to flash the one connected to USB1, how would I go about doing this?

Expected behavior

flash_firmware.sh should offer an option (eg, --dev /dev/ttyUSB1) to flash to a particular port

Actual behavior

No such option exists. flash_firmware.sh flashes to the first available USB port

Additional information
Dominant language
Shell
Stars
509
Forks
183
Avg merge
22h 26m
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from micro-ROS/micro_ros_setup

All issues in micro-ROS/micro_ros_setup

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.