How to specify an override for the default serial port used for flashing firmware via flash_firmware.sh?
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from micro-ROS/micro_ros_setup
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
micro-ROS/micro_ros_setup#837 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
micro-ROS/micro_ros_setup#814 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
micro-ROS/micro_ros_setup#809 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
micro-ROS/micro_ros_setup#808 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
micro-ROS/micro_ros_setup#806 ·
All issues in micro-ROS/micro_ros_setup
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug easy help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lacs-project/sysknife#503 ·
-
help wanted kind/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
liquidmetal-dev/flintlock#1239 ·