{"id":48236671,"url":"https://github.com/micro-ROS/micro_ros_setup","last_synced_at":"2026-04-20T08:01:51.002Z","repository":{"id":38320606,"uuid":"181924606","full_name":"micro-ROS/micro_ros_setup","owner":"micro-ROS","description":"Support macros for building micro-ROS-based firmware.","archived":false,"fork":false,"pushed_at":"2026-01-19T11:08:24.000Z","size":908,"stargazers_count":472,"open_issues_count":60,"forks_count":168,"subscribers_count":20,"default_branch":"kilted","last_synced_at":"2026-01-21T04:22:05.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micro-ROS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-04-17T16:01:06.000Z","updated_at":"2026-01-16T16:06:35.000Z","dependencies_parsed_at":"2023-02-08T17:46:07.456Z","dependency_job_id":"595cfa27-a4a6-44d0-819c-c2c474558631","html_url":"https://github.com/micro-ROS/micro_ros_setup","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/micro-ROS/micro_ros_setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-ROS%2Fmicro_ros_setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-ROS%2Fmicro_ros_setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-ROS%2Fmicro_ros_setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-ROS%2Fmicro_ros_setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micro-ROS","download_url":"https://codeload.github.com/micro-ROS/micro_ros_setup/tar.gz/refs/heads/kilted","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micro-ROS%2Fmicro_ros_setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32038455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T20:00:35.181Z","updated_at":"2026-04-20T08:01:50.981Z","avatar_url":"https://github.com/micro-ROS.png","language":"Shell","funding_links":[],"categories":["🤖 ROS / ROS 2 Ecosystem"],"sub_categories":[],"readme":"\u003cbr/\u003e\n   \u003cp align=\"center\"\u003e\n      \u003cimg width=\"40%\" src=\".images/microros_logo.png\"\u003e\n   \u003c/p\u003e\n\u003cbr/\u003e\n\nThis ROS 2 package is the entry point for building micro-ROS apps for different embedded platforms.\n\n- [Supported platforms](#supported-platforms)\n  - [Standalone build system tools](#standalone-build-system-tools)\n- [Dependencies](#dependencies)\n- [Quick start](#quick-start)\n- [Building](#building)\n  - [Creating micro-ROS firmware](#creating-micro-ros-firmware)\n  - [Configuring micro-ROS firmware](#configuring-micro-ros-firmware)\n  - [Building micro-ROS firmware](#building-micro-ros-firmware)\n  - [Flashing micro-ROS firmware](#flashing-micro-ros-firmware)\n- [Building micro-ROS-Agent](#building-micro-ros-agent)\n- [Contributing](#contributing)\n- [Purpose of the Project](#purpose-of-the-project)\n- [License](#license)\n- [Known Issues / Limitations](#known-issues--limitations)\n- [Papers](#papers)\n\n# Supported platforms\n\nThis package provides tools and utils to crosscompile micro-ROS with just the common ROS 2 tools for the following platforms.\n\n**Note that this package provides basic support only, intended in particular for ROS developers who are new to microcontrollers. Micro-ROS [components for each platform](#standalone-build-system-tools) are available and provide a deeper and more flexible integration with the platform-specific build systems.**\n\n| RTOS                                                                                                                | Platform                                                                                                                                                                                 | Version                      | Example                      | Recommended Alternative                                                                                                                |\n| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |\n| [FreeRTOS](https://www.freertos.org/)                                                                               | [ST Nucleo F446RE](https://www.st.com/en/evaluation-tools/nucleo-f446re.html)  \u003csup\u003e1\u003c/sup\u003e                                                                                              | STM32CubeMX latest           | `freertos nucleo_f446re`     | **[micro-ROS utils for STM32CubeMX and STM32CubeIDE](https://github.com/micro-ROS/micro_ros_stm32cubemx_utils)**                       |\n| [FreeRTOS](https://www.freertos.org/)                                                                               | [ST Nucleo F446ZE](https://www.st.com/en/evaluation-tools/nucleo-f446ze.html)  \u003csup\u003e1\u003c/sup\u003e                                                                                              | STM32CubeMX latest           | `freertos nucleo_f446ze`     | **[micro-ROS utils for STM32CubeMX and STM32CubeIDE](https://github.com/micro-ROS/micro_ros_stm32cubemx_utils)**                       |\n| [FreeRTOS](https://www.freertos.org/)                                                                               | [ST Nucleo F746ZG](https://www.st.com/en/evaluation-tools/nucleo-f746zg.html)  \u003csup\u003e1\u003c/sup\u003e                                                                                              | STM32CubeMX latest           | `freertos nucleo_f746zg`     | **[micro-ROS utils for STM32CubeMX and STM32CubeIDE](https://github.com/micro-ROS/micro_ros_stm32cubemx_utils)**                       |\n| [FreeRTOS](https://www.freertos.org/)                                                                               | [ST Nucleo F767ZI](https://www.st.com/en/evaluation-tools/nucleo-f746zg.html)  \u003csup\u003e1\u003c/sup\u003e                                                                                              | STM32CubeMX latest           | `freertos nucleo_f767zi`     | **[micro-ROS utils for STM32CubeMX and STM32CubeIDE](https://github.com/micro-ROS/micro_ros_stm32cubemx_utils)**                       |\n| [FreeRTOS](https://www.freertos.org/)                                                                               | [Espressif ESP32](https://www.espressif.com/en/products/socs/esp32/overview)                                                                                                             | v8.2.0                       | `freertos esp32`             | **[micro-ROS component for ESP-IDF](https://github.com/micro-ROS/micro_ros_espidf_component)**                                         |\n| [FreeRTOS](https://www.freertos.org/)                                                                               | [Crazyflie 2.1](https://www.bitcraze.io/crazyflie-2-1/)                                                                                                                                  | v10.2.1 - CF 2020.06         | `freertos crazyflie21`       |                                                                                                                                        |\n| [Zephyr](https://www.zephyrproject.org/)                                                                            | [Olimex STM32-E407](https://www.olimex.com/Products/ARM/ST/STM32-E407/open-source-hardware)                                                                                              | v2.6.0                       | `zephyr olimex-stm32-e407`   | **[micro-ROS module for Zephyr RTOS](https://github.com/micro-ROS/micro_ros_zephyr_module)**                                           |\n| [Zephyr](https://www.zephyrproject.org/)                                                                            | [ST Nucleo F446RE](https://www.st.com/en/evaluation-tools/nucleo-f446re.html)  \u003csup\u003e1\u003c/sup\u003e                                                                                              | v2.6.0                       | `zephyr nucleo_f446re`       | **[micro-ROS module for Zephyr RTOS](https://github.com/micro-ROS/micro_ros_zephyr_module)**                                           |\n| [Zephyr](https://www.zephyrproject.org/)                                                                            | [ST B-L475E-IOT01A](https://docs.zephyrproject.org/latest/boards/arm/disco_l475_iot1/doc/index.html)                                                                                     | v2.6.0                       | `zephyr discovery_l475_iot1` | **[micro-ROS module for Zephyr RTOS](https://github.com/micro-ROS/micro_ros_zephyr_module)**                                           |\n| [Zephyr](https://www.zephyrproject.org/)                                                                            | [ST Nucleo H743ZI](https://www.st.com/en/evaluation-tools/nucleo-h743zi.html) \u003csup\u003e1\u003c/sup\u003e                                                                                               | v2.6.0                       | `zephyr nucleo_h743zi`       | **[micro-ROS module for Zephyr RTOS](https://github.com/micro-ROS/micro_ros_zephyr_module)**                                           |\n| [Zephyr](https://www.zephyrproject.org/)                                                                            | [Zephyr emulator](https://docs.zephyrproject.org/2.3.0/boards/posix/native_posix/doc/index.html)                                                                                         | v2.6.0                       | `zephyr host`                | **[micro-ROS module for Zephyr RTOS](https://github.com/micro-ROS/micro_ros_zephyr_module)**                                           |\n| -                                                                                                                   | Static library (.a) and headers (.h) \u003csup\u003e3\u003c/sup\u003e                                                                                                                                        | -                            | `generate_lib`               |                                                                                                                                        |\n| Linux                                                                                                               | *Host \u003csup\u003e2\u003c/sup\u003e*                                                                                                                                                                      | Ubuntu 18.04/20.04           | `host`                       |                                                                                                                                        |\n| Android                                                                                                             | [AOSP](https://source.android.com) \u003csup\u003e1\u003c/sup\u003e                                                                                                                                          | Latest                       | `android generic`            |                                                                                                                                        |\n\n*\u003csup\u003e1\u003c/sup\u003e Community supported, may have lack of official support*\n\n*\u003csup\u003e2\u003c/sup\u003e Support for compiling apps in a native Linux host for testing and debugging*\n\n*\u003csup\u003e3\u003c/sup\u003e a valid CMake toolchain with custom crosscompilation definition is required*\n\n## Standalone build system tools\n\n`micro_ros_setup` provides access to standalone build system tools using the `component` command.\nAfter [building this package](#building) just run:\n\n```bash\nros2 run micro_ros_setup component --help\n```\n\nmicro-ROS standalone module for specific platforms are:\n\n- a standalone **[micro-ROS component for Renesas e\u003csup\u003e2\u003c/sup\u003e studio and RA6M5](https://github.com/micro-ROS/micro_ros_renesas2estudio_component)**: this package enables the integration of micro-ROS in Renesas e\u003csup\u003e2\u003c/sup\u003e studio and RA6M5 MCU family.\n- a standalone **[micro-ROS component for ESP-IDF](https://github.com/micro-ROS/micro_ros_espidf_component)**: this package enables the integration of micro-ROS in any Espressif ESP32 IDF project.\n- a standalone **[micro-ROS module for Zephyr RTOS](https://github.com/micro-ROS/micro_ros_zephyr_module)**: this package enables the integration of micro-ROS in any Zephyr RTOS workspace.\n- a standalone **[micro-ROS module for Mbed RTOS](https://github.com/micro-ROS/micro_ros_mbed)**: this package enables the integration of micro-ROS in any Mbed RTOS workspace.\n- a standalone **[micro-ROS module for NuttX RTOS](https://github.com/micro-ROS/micro_ros_nuttx_app)**: this package enables the integration of micro-ROS in any NuttX RTOS workspace.\n- a standalone **[micro-ROS module for Microsoft Azure RTOS](https://github.com/micro-ROS/micro_ros_azure_rtos_app)**: this package enables the integration of micro-ROS in a Microsoft Azure RTOS workspace.\n- a standalone **[micro-ROS module for RT-Thread RTOS](https://github.com/micro-ROS/micro_ros_rtthread_component)**: this package enables the integration of micro-ROS in a RT-Thread workspace.\n- a standalone **[micro-ROS app for TI Tiva™ C Series](https://github.com/micro-ROS/micro_ros_tivac_launchpad_app)**: this package enables the integration of micro-ROS in a exas Instruments Tiva™ C Series.\n- a set of **[micro-ROS utils for STM32CubeMX and STM32CubeIDE](https://github.com/micro-ROS/micro_ros_stm32cubemx_utils)**: this package enables the integration of micro-ROS in STM32CubeMX and STM32CubeIDE.\n- a library builder for **[PlatformIO](https://github.com/micro-ROS/micro_ros_platformio)**: this package enables the integration of micro-ROS in PlatformIO.\n- a precompiled set of **[Arduino IDE libraries](https://github.com/micro-ROS/micro_ros_arduino)**: this package enables the integration of micro-ROS in the Arduino IDE for some hardware platforms.\n- a precompiled set of **[Raspberry Pi Pico SDK libraries](https://github.com/micro-ROS/micro_ros_raspberrypi_pico_sdk)**: this package enables the integration of micro-ROS in the Raspberry Pi Pico SDK.\n\n# Dependencies\n\nThis package targets the **ROS 2** installation. ROS 2 supported distributions are:\n\n| ROS 2 Distro | State     | Branch     |\n| ------------ | --------- | ---------- |\n| Crystal      | EOL       | `crystal`  |\n| Dashing      | EOL       | `dashing`  |\n| Foxy         | EOL       | `foxy`     |\n| Galactic     | EOL       | `galactic` |\n| Humble       | Supported | `humble`   |\n| Iron         | EOL       | `iron`     |\n| Jazzy        | Supported | `jazzy`    |\n| Kilted       | Supported | `kilted`   |\n| Rolling      | Supported | `rolling`  |\n\nSome other prerequisites needed for building a firmware using this package are:\n\n```\nsudo apt install python3-rosdep\n```\n\nBuilding for Android needs [Latest Android NDK](https://developer.android.com/ndk/downloads) to be installed and the following environment variables to be set:\n- ```ANDROID_ABI```: CPU variant, refer [here](https://developer.android.com/ndk/guides/abis) for details.\n- ```ANDROID_NATIVE_API_LEVEL```: Android platform version, refer [here](https://developer.android.com/ndk/guides/cmake#android_native_api_level) for details.\n- ```ANDROID_NDK```: root path of the installed NDK.\n\n# Quick start\n\nDownload [here](https://www.eprosima.com/index.php/downloads-all) the micro-ROS docker image that contains a pre-installed client and agent as well as some compiled examples.\n\n# Building\n\nCreate a ROS 2 workspace and build this package for a given ROS 2 distro (see table above):\n\n```bash\nsource /opt/ros/$ROS_DISTRO/setup.bash\n\nmkdir uros_ws \u0026\u0026 cd uros_ws\n\ngit clone -b $ROS_DISTRO https://github.com/micro-ROS/micro_ros_setup.git src/micro_ros_setup\n\nrosdep update \u0026\u0026 rosdep install --from-paths src --ignore-src -y\n\ncolcon build\n\nsource install/local_setup.bash\n```\n\nOnce the package is built, the firmware scripts are ready to run.\n\nYou can find tutorials for moving your first steps with micro-ROS on an RTOS in the [micro-ROS webpage](https://micro-ros.github.io/docs/tutorials/core/first_application_rtos/).\n\n\n## Creating micro-ROS firmware\n\nUsing the `create_firmware_ws.sh [RTOS] [Platform]` command, a firmware folder will be created with the required code for building a micro-ROS app. For example, for our reference platform, the invocation is:\n\n```bash\n# Creating a FreeRTOS + micro-ROS firmware workspace\nros2 run micro_ros_setup create_firmware_ws.sh freertos olimex-stm32-e407\n\n# Creating a Zephyr + micro-ROS firmware workspace\nros2 run micro_ros_setup create_firmware_ws.sh zephyr olimex-stm32-e407\n```\n\n## Configuring micro-ROS firmware\n\nBy running `configure_firmware.sh` command the installed firmware is configured and modified in a pre-build step. This command will show its usage if parameters are not provided:\n\n```\nros2 run micro_ros_setup configure_firmware.sh [configuration] [options]\n```\n\nBy running this command without any argument the available demo applications and configurations will be shown.\n\nCommon options available at this configuration step are:\n  - `--transport` or `-t`: `udp`, `serial` or any hardware specific transport label\n  - `--dev` or `-d`: agent string descriptor in a serial-like transport (optional)\n  - `--ip` or `-i`: agent IP in a network-like transport (optional)\n  - `--port` or `-p`: agent port in a network-like transport (optional)\n\n\nPlease note that each RTOS has its configuration approach that you might use for further customization of these base configurations. Visit the [micro-ROS webpage](https://micro-ros.github.io/docs/tutorials/core/first_application_rtos/) for detailed information about RTOS configuration.\n\nIn summary, the supported configurations for transports are:\n\n|                               |     FreeRTOS      |       Zephyr       |\n| ----------------------------- | :---------------: | :----------------: |\n| Olimex STM32-E407             |   UART, Network   |     USB, UART      |\n| ST B-L475E-IOT01A             |         -         | USB, UART, Network |\n| Crazyflie 2.1                 | Custom Radio Link |         -          |\n| Espressif ESP32               |  UART, WiFI UDP   |         -          |\n| ST Nucleo F446RE \u003csup\u003e1\u003c/sup\u003e |       UART        |        UART        |\n| ST Nucleo F446ZE \u003csup\u003e1\u003c/sup\u003e |       UART        |         -          |\n| ST Nucleo H743ZI \u003csup\u003e1\u003c/sup\u003e |         -         |        UART        |\n| ST Nucleo F746ZG \u003csup\u003e1\u003c/sup\u003e |       UART        |        UART        |\n| ST Nucleo F767ZI \u003csup\u003e1\u003c/sup\u003e |       UART        |         -          |\n\n*\u003csup\u003e1\u003c/sup\u003e Community supported, may have lack of official support*\n\n## Building micro-ROS firmware\n\nBy running `build_firmware.sh` the firmware is built:\n\n```\nros2 run micro_ros_setup build_firmware.sh\n```\n\n## Flashing micro-ROS firmware\n\nIn order to flash the target platform run `flash_firmware.sh` command.\nThis step may need some platform-specific procedure to boot the platform in flashing mode:\n\n```\nros2 run micro_ros_setup flash_firmware.sh\n```\n\n# Building micro-ROS-Agent\n\nUsing this package is possible to install a ready to use **micro-ROS-Agent**:\n\n```\nros2 run micro_ros_setup create_agent_ws.sh\nros2 run micro_ros_setup build_agent.sh\nsource install/local_setup.sh\nros2 run micro_ros_agent micro_ros_agent [parameters]\n```\n\n# Contributing\n\nAs it is explained along this document, the firmware building system takes **four steps**: creating, configuring, building and flashing.\n\nNew combinations of platforms and RTOS are intended to be included in `config` folder. For example, the scripts for building a **micro-ROS** app for **Crazyflie 2.1** using **FreeRTOS** is located in `config/freertos/crazyflie21`.\n\nThis folder contains up to four scripts:\n- `create.sh`: gets a variable named `$FW_TARGETDIR` and installs in this path all the dependencies and code required for the firmware.\n- `configure.sh`: modifies and configure parameters of the installed dependencies. This step is **optional**.\n- `build.sh`: builds the firmware and create a platform-specific linked binary.\n- `flash.sh`: flashes the binary in the target platform.\n\nSome other required files inside the folder can be accessed from these scripts using the following paths:\n\n```bash\n# Files inside platform folder\n$PREFIX/config/$RTOS/$PLATFORM/\n\n# Files inside config folder\n$PREFIX/config\n```\n\n# Purpose of the Project\n\nThis software is not ready for production use. It has neither been developed nor\ntested for a specific use case. However, the license conditions of the\napplicable Open Source licenses allow you to adapt the software to your needs.\nBefore using it in a safety relevant setting, make sure that the software\nfulfills your requirements and adjust it according to any applicable safety\nstandards, e.g., ISO 26262.\n\n# License\n\nThis repository is open-sourced under the Apache-2.0 license. See the [LICENSE](LICENSE) file for details.\n\nFor a list of other open-source components included in ROS 2 system_modes,\nsee the file [3rd-party-licenses.txt](3rd-party-licenses.txt).\n\n# Known Issues / Limitations\n\nThere are no known limitations.\n\nIf you find issues, [please report them](https://github.com/micro-ROS/micro_ros_setup/issues).\n\n# Papers\n\nIf you want to cite micro-ROS, please cite the following book chapter ([PDF available at Springer Link](https://doi.org/10.1007/978-3-031-09062-2_2)):\n\nKaiwalya Belsare, Antonio Cuadros Rodriguez, Pablo Garrido Sánchez, Juanjo Hierro, Tomasz Kołcon, Ralph Lange, Ingo Lütkebohle, Alexandre Malki, Jaime Martin Losa, Francisco Melendez, Maria Merlan Rodriguez, Arne Nordmann, Jan Staschulat, and Julian von Mendel: Micro-ROS. In: _Anis Koubaa (ed.) Robot Operating System (ROS): The Complete Reference (Volume 7),_ Springer, pp. 3–55, 2023. (Online since 2 February 2023.)\n\n```bibtex\n@INBOOK{Belsare_et_al_2023_Micro-ROS,\n  author = {Kaiwalya Belsare and Antonio Cuadros Rodriguez and Pablo Garrido S\\'{a}nchez and Juanjo Hierro\n            and Tomasz Ko\\l{}con and Ralph Lange and Ingo L\\\"{u}tkebohle and Alexandre Malki\n            and Jaime Martin Losa and Francisco Melendez and Maria Merlan Rodriguez and Arne Nordmann\n            and Jan Staschulat and and Julian von Mendel},\n  title = {Micro-ROS},\n  editor = {Anis Koubaa},\n  booktitle = {Robot Operating System (ROS): The Complete Reference (Volume 7)},\n  year = {2023},\n  publisher = {Springer},\n  pages = {3--55},\n  doi = {10.1007/978-3-031-09062-2_2}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicro-ROS%2Fmicro_ros_setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicro-ROS%2Fmicro_ros_setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicro-ROS%2Fmicro_ros_setup/lists"}