Skip to content

Commit 650fecf

Browse files
nomumumergify[bot]pablogs9bhavesh-srdayjaby
authored
Sync fork (#1)
* Update yaml_filter.py (micro-ROS#365) (micro-ROS#367) (cherry picked from commit ce41dcb) Co-authored-by: Pablo Garrido <[email protected]> * Support for flashing Olimex STM32-E407 with STLINK v2 debuggers (micro-ROS#374) * Update standalone build tools section (backport micro-ROS#380) (micro-ROS#382) * Update standalone build tools section (micro-ROS#380) * Update standalone build tools section * Upd * Updates (cherry picked from commit e13e64d) # Conflicts: # README.md * Update Co-authored-by: Pablo Garrido <[email protected]> * Simplify micro-ROS Agent build (micro-ROS#378) (micro-ROS#384) * Simplify agent build * Revert this * Update config/agent_uros_packages.repos Co-authored-by: Pablo Garrido <[email protected]> Co-authored-by: Antonio Cuadros <[email protected]> (cherry picked from commit 70ccf66) Co-authored-by: Pablo Garrido <[email protected]> * Update README.md (micro-ROS#386) (micro-ROS#387) (cherry picked from commit a4c138e) Co-authored-by: Pablo Garrido <[email protected]> * Add renesas RA6M5 (backport micro-ROS#390) (micro-ROS#391) * Add renesas RA6M5 (micro-ROS#390) * Add renesas RA6M5 * Fix * Avoid toolchain (cherry picked from commit d27b83e) # Conflicts: # README.md * Fix Co-authored-by: Pablo Garrido <[email protected]> * openocd: added script to reset devices (micro-ROS#399) * fix: use FW_TARGETDIR instead of firmware (micro-ROS#400) * Temporal disable Rolling Agent CI (backport micro-ROS#408) (micro-ROS#410) * Temporal disable Rolling Agent CI (micro-ROS#408) (cherry picked from commit 218170b) # Conflicts: # .github/workflows/nightly.yml * Update nightly.yml Co-authored-by: Pablo Garrido <[email protected]> * Remove unnecessary rosdep (micro-ROS#411) (micro-ROS#412) (cherry picked from commit c03d66e) Co-authored-by: Pablo Garrido <[email protected]> * Fix rosdep (backport micro-ROS#414) (micro-ROS#415) * Fix rosdep (micro-ROS#414) * Fix rosdep * Update (cherry picked from commit 3a28e75) # Conflicts: # scripts/create_firmware_ws.sh * Fix conflicts Co-authored-by: Pablo Garrido <[email protected]> * Modify host build (micro-ROS#418) (micro-ROS#421) (cherry picked from commit 97f013e) Co-authored-by: Pablo Garrido <[email protected]> * Skip existing repos in vcs (micro-ROS#419) (micro-ROS#423) (cherry picked from commit ecdd1ab) Co-authored-by: Pablo Garrido <[email protected]> * Fix host src folder (micro-ROS#417) (micro-ROS#425) (cherry picked from commit fc7faa3) Co-authored-by: Pablo Garrido <[email protected]> * Build dynamic lib of rosidl_typesupport _microxrcedds (backport micro-ROS#473) (micro-ROS#475) * build dynamic lib of rosidl_typesupport of (micro-ROS#473) microxrcedds_c (cherry picked from commit 3136ad0) # Conflicts: # config/host/generic/build.sh # config/host/generic/client_host_packages.repos * Conflicts Signed-off-by: Pablo Garrido <[email protected]> Co-authored-by: VictorLee <[email protected]> Co-authored-by: Pablo Garrido <[email protected]> * Fix Zephyr CI (backport micro-ROS#480) (micro-ROS#482) * Fix Zephyr CI (micro-ROS#480) Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit 0942f74) # Conflicts: # config/zephyr/generic/create.sh * Update Signed-off-by: Pablo Garrido <[email protected]> Co-authored-by: Pablo Garrido <[email protected]> * Update changelog Signed-off-by: Pablo Garrido <[email protected]> * 1.0.0 * Enable rolling agent (backport micro-ROS#479) (micro-ROS#484) * Enable rolling agent (micro-ROS#479) * Enable rolling agent Signed-off-by: Pablo Garrido <[email protected]> * Install python3.9-dev Signed-off-by: Pablo Garrido <[email protected]> * Fix Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit 91ed371) # Conflicts: # .github/workflows/ci.yml # .github/workflows/nightly.yml * update Signed-off-by: Pablo Garrido <[email protected]> Co-authored-by: Pablo Garrido <[email protected]> * Fix CI Signed-off-by: Pablo Garrido <[email protected]> * Fix CI Signed-off-by: Pablo Garrido <[email protected]> * Fix Agent and host Rolling CI (backport micro-ROS#486) (micro-ROS#487) * Fix Agent and host Rolling CI (micro-ROS#486) Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit d71ce51) # Conflicts: # .github/workflows/ci.yml # .github/workflows/nightly.yml * Fix Signed-off-by: Pablo Garrido <[email protected]> Co-authored-by: Pablo Garrido <[email protected]> * Fix CI upgrade ROS docker (micro-ROS#489) Signed-off-by: Pablo Garrido <[email protected]> * Remove Python 3.9 (backport micro-ROS#496) (micro-ROS#497) * Remove Python 3.9 (micro-ROS#496) Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit d327cba) # Conflicts: # .github/workflows/ci.yml * Update Signed-off-by: Pablo Garrido <[email protected]> Co-authored-by: Pablo Garrido <[email protected]> * Modified zephyr create.sh to pull correct toolchain based on arch (micro-ROS#499) (micro-ROS#501) (cherry picked from commit 8793b5a) Co-authored-by: Drew Hoener <[email protected]> * Fix readme rosdep (micro-ROS#506) (micro-ROS#507) Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit c546b01) Co-authored-by: Pablo Garrido <[email protected]> * Add platformIO to Readme (micro-ROS#510) (micro-ROS#511) (cherry picked from commit f0e7398) Co-authored-by: Antonio Cuadros <[email protected]> * Add renesas dummy meta (micro-ROS#516) (micro-ROS#517) Signed-off-by: Pablo Garrido <[email protected]> (cherry picked from commit c1ee153) Co-authored-by: Pablo Garrido <[email protected]> * Fix PyYaml unistall error (micro-ROS#521) * Update changelog Signed-off-by: Pablo Garrido <[email protected]> * 1.1.0 * Remove unnessary check (micro-ROS#553) (micro-ROS#567) Signed-off-by: Kevin Goez <[email protected]> Signed-off-by: Kevin Goez <[email protected]> (cherry picked from commit b81290a) Co-authored-by: k7g03z <[email protected]> Signed-off-by: Pablo Garrido <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Pablo Garrido <[email protected]> Co-authored-by: Bhavesh Kakwani <[email protected]> Co-authored-by: David Jablonski <[email protected]> Co-authored-by: VictorLee <[email protected]> Co-authored-by: Drew Hoener <[email protected]> Co-authored-by: Antonio Cuadros <[email protected]> Co-authored-by: k7g03z <[email protected]>
1 parent f681dc5 commit 650fecf

39 files changed

+434
-72
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
apt install -y python3-colcon-metadata python3-pip
5454
rosdep update --rosdistro $ROS_DISTRO
5555
rosdep install -y --from-paths src --ignore-src -y
56+
apt install -y ros-${ROS_DISTRO}-rmw-fastrtps-cpp
5657
5758
- uses: actions/download-artifact@v1
5859
with:
@@ -192,6 +193,7 @@ jobs:
192193
- name: Dependencies
193194
run: |
194195
apt update
196+
apt upgrade -y
195197
apt install -y python3-colcon-metadata python3-pip
196198
rosdep update --rosdistro $ROS_DISTRO
197199
rosdep install -y --from-paths src --ignore-src -y

.github/workflows/nightly.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ jobs:
329329
- name: Dependencies
330330
run: |
331331
apt update
332+
apt upgrade -y
332333
apt install -y python3-colcon-metadata python3-pip
333334
rosdep update --rosdistro $ROS_DISTRO
334335
rosdep install -y --from-paths src --ignore-src -y
@@ -364,6 +365,8 @@ jobs:
364365
branch: foxy
365366
- distro: rolling
366367
branch: main
368+
- distro: galactic
369+
branch: galactic
367370

368371
needs: micro_ros_build
369372
container: ros:${{ matrix.distro }}
@@ -380,6 +383,7 @@ jobs:
380383
apt install -y python3-colcon-metadata python3-pip
381384
rosdep update --rosdistro $ROS_DISTRO
382385
rosdep install -y --from-paths src --ignore-src -y
386+
apt install -y ros-${ROS_DISTRO}-rmw-fastrtps-cpp
383387
384388
- uses: actions/download-artifact@v1
385389
with:
@@ -399,4 +403,4 @@ jobs:
399403
400404
- name: installation
401405
run: |
402-
(test -f install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent) && true || false
406+
(test -f install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent) && true || false

CHANGELOG.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package micro_ros_setup
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
5+
1.1.0 (2022-05-25)
6+
------------------
7+
* Fix PyYaml unistall error (`#521 <https://github.com/micro-ROS/micro-ros-build/issues/521>`_)
8+
* Add renesas dummy meta (`#516 <https://github.com/micro-ROS/micro-ros-build/issues/516>`_) (`#517 <https://github.com/micro-ROS/micro-ros-build/issues/517>`_)
9+
* Add platformIO to Readme (`#510 <https://github.com/micro-ROS/micro-ros-build/issues/510>`_) (`#511 <https://github.com/micro-ROS/micro-ros-build/issues/511>`_)
10+
* Fix readme rosdep (`#506 <https://github.com/micro-ROS/micro-ros-build/issues/506>`_) (`#507 <https://github.com/micro-ROS/micro-ros-build/issues/507>`_)
11+
* Modified zephyr create.sh to pull correct toolchain based on arch (`#499 <https://github.com/micro-ROS/micro-ros-build/issues/499>`_) (`#501 <https://github.com/micro-ROS/micro-ros-build/issues/501>`_)
12+
* Remove Python 3.9 (backport `#496 <https://github.com/micro-ROS/micro-ros-build/issues/496>`_) (`#497 <https://github.com/micro-ROS/micro-ros-build/issues/497>`_)
13+
* Fix CI upgrade ROS docker (`#489 <https://github.com/micro-ROS/micro-ros-build/issues/489>`_)
14+
* Fix Agent and host Rolling CI (backport `#486 <https://github.com/micro-ROS/micro-ros-build/issues/486>`_) (`#487 <https://github.com/micro-ROS/micro-ros-build/issues/487>`_)
15+
* Fix CI
16+
17+
1.0.0 (2022-03-28)
18+
------------------
19+
* Initial release

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ install(
4545
scripts/create_firmware_ws.sh
4646
scripts/configure_firmware.sh
4747
scripts/flash_firmware.sh
48+
scripts/reset_firmware.sh
4849
scripts/build_firmware.sh
4950
scripts/build_agent.sh
5051
scripts/yaml_filter.py

README.md

Lines changed: 41 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
This ROS 2 package is the entry point for building micro-ROS apps for different embedded platforms.
33

44
- [Supported platforms](#supported-platforms)
5-
- [Secondary build system tools](#secondary-build-system-tools)
5+
- [Standalone build system tools](#standalone-build-system-tools)
66
- [Dependencies](#dependencies)
7+
- [Quick start](#quick-start)
78
- [Building](#building)
89
- [Creating micro-ROS firmware](#creating-micro-ros-firmware)
910
- [Configuring micro-ROS firmware](#configuring-micro-ros-firmware)
@@ -19,56 +20,67 @@ This ROS 2 package is the entry point for building micro-ROS apps for different
1920

2021
This package is the **official build system for micro-ROS**. It provides tools and utils to crosscompile micro-ROS with just the common ROS 2 tools for these platforms:
2122

22-
| RTOS | Platform | Version | Example |
23-
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------- | -------------------- | ---------------------------- |
24-
| [Nuttx](https://nuttx.org/) | [Olimex STM32-E407](https://www.olimex.com/Products/ARM/ST/STM32-E407/open-source-hardware) | v7.29 | `nuttx olimex-stm32-e407` |
25-
| [FreeRTOS](https://www.freertos.org/) | [Crazyflie 2.1](https://www.bitcraze.io/crazyflie-2-1/) | v10.2.1 - CF 2020.06 | `freertos crazyflie21` |
26-
| [FreeRTOS](https://www.freertos.org/) | [Olimex STM32-E407](https://www.olimex.com/Products/ARM/ST/STM32-E407/open-source-hardware) | STM32CubeMX latest | `freertos olimex-stm32-e407` |
27-
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F446RE](https://www.st.com/en/evaluation-tools/nucleo-f446re.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f446re` |
28-
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F446ZE](https://www.st.com/en/evaluation-tools/nucleo-f446ze.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f446ze` |
29-
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F746ZG](https://www.st.com/en/evaluation-tools/nucleo-f746zg.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f746zg` |
30-
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F767ZI](https://www.st.com/en/evaluation-tools/nucleo-f746zg.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f767zi` |
31-
| [FreeRTOS](https://www.freertos.org/) | [Espressif ESP32](https://www.espressif.com/en/products/socs/esp32/overview) | v8.2.0 | `freertos esp32` |
32-
| [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` |
33-
| [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` |
34-
| [Zephyr](https://www.zephyrproject.org/) | [ST Nucleo H743ZI](https://www.st.com/en/evaluation-tools/nucleo-h743zi.html) <sup>1</sup> | v2.6.0 | `zephyr nucleo_h743zi` |
35-
| [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` |
36-
| - | Static library (.a) and headers (.h) <sup>3</sup> | - | `generate_lib` |
37-
| Linux | *Host <sup>2</sup>* | Ubuntu 18.04/20.04 | `host` |
23+
| RTOS | Platform | Version | Example |
24+
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ---------------------------- |
25+
| [Azure RTOS](https://azure.microsoft.com/es-es/services/rtos/) / [FreeRTOS](https://www.freertos.org/) / Bare metal | [Renesas RA6M5](https://www.renesas.com/us/en/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra6m5-200mhz-arm-cortex-m33-trustzone-highest-integration-ethernet-and-can-fde) | Renesas e<sup>2</sup> studio | `renesas_ra ra6m5` |
26+
| [Nuttx](https://nuttx.org/) | [Olimex STM32-E407](https://www.olimex.com/Products/ARM/ST/STM32-E407/open-source-hardware) | v7.29 | `nuttx olimex-stm32-e407` |
27+
| [FreeRTOS](https://www.freertos.org/) | [Crazyflie 2.1](https://www.bitcraze.io/crazyflie-2-1/) | v10.2.1 - CF 2020.06 | `freertos crazyflie21` |
28+
| [FreeRTOS](https://www.freertos.org/) | [Olimex STM32-E407](https://www.olimex.com/Products/ARM/ST/STM32-E407/open-source-hardware) | STM32CubeMX latest | `freertos olimex-stm32-e407` |
29+
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F446RE](https://www.st.com/en/evaluation-tools/nucleo-f446re.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f446re` |
30+
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F446ZE](https://www.st.com/en/evaluation-tools/nucleo-f446ze.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f446ze` |
31+
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F746ZG](https://www.st.com/en/evaluation-tools/nucleo-f746zg.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f746zg` |
32+
| [FreeRTOS](https://www.freertos.org/) | [ST Nucleo F767ZI](https://www.st.com/en/evaluation-tools/nucleo-f746zg.html) <sup>1</sup> | STM32CubeMX latest | `freertos nucleo_f767zi` |
33+
| [FreeRTOS](https://www.freertos.org/) | [Espressif ESP32](https://www.espressif.com/en/products/socs/esp32/overview) | v8.2.0 | `freertos esp32` |
34+
| [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` |
35+
| [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` |
36+
| [Zephyr](https://www.zephyrproject.org/) | [ST Nucleo H743ZI](https://www.st.com/en/evaluation-tools/nucleo-h743zi.html) <sup>1</sup> | v2.6.0 | `zephyr nucleo_h743zi` |
37+
| [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` |
38+
| - | Static library (.a) and headers (.h) <sup>3</sup> | - | `generate_lib` |
39+
| Linux | *Host <sup>2</sup>* | Ubuntu 18.04/20.04 | `host` |
3840

3941
*<sup>1</sup> Community supported, may have lack of official support*
4042

4143
*<sup>2</sup> Support for compiling apps in a native Linux host for testing and debugging*
4244

4345
*<sup>3</sup> a valid CMake toolchain with custom crosscompilation definition is required*
4446

45-
Please note that NuttX with Olimex STM32-E407 board is the reference platform and not everything might be supported on other platforms.
46-
47-
## Secondary build system tools
47+
## Standalone build system tools
4848

4949
micro-ROS also offers some other ways to crosscompile it for different platforms. These other options are secondary tools and may not have full support for all features. Currently micro-ROS is also available as:
5050

51+
- a standalone **[micro-ROS component for Renesas e<sup>2</sup> studio and RA6M5](https://github.com/micro-ROS/micro_ros_renesas2estudio_component)**: this package enables the integration of micro-ROS in Renesas e<sup>2</sup> studio and RA6M5 MCU family.
5152
- 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.
5253
- 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.
54+
- 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.
55+
- 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.
56+
- 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.
57+
- 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.
58+
- a library builder for **[PlatformIO](https://github.com/micro-ROS/micro_ros_platformio)**: this package enables the integration of micro-ROS in PlatformIO.
5359
- 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.
60+
- 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.
5461

5562
# Dependencies
5663

5764
This package targets the **ROS 2** installation. ROS 2 supported distributions are:
5865

59-
| ROS 2 Distro | State | Branch |
60-
| ------------ | --------- | --------- |
61-
| Crystal | Supported | `crystal` |
62-
| Dashing | Supported | `dashing` |
63-
| Foxy | Supported | `foxy` |
66+
| ROS 2 Distro | State | Branch |
67+
| ------------ | --------- | ---------- |
68+
| Crystal | EOL | `crystal` |
69+
| Dashing | EOL | `dashing` |
70+
| Foxy | Supported | `foxy` |
71+
| Galactic | Supported | `galactic` |
72+
| Rolling | Supported | `main` |
6473

6574
Some other prerequisites needed for building a firmware using this package are:
6675

6776
```
6877
sudo apt install python3-rosdep
6978
```
79+
# Quick start
80+
81+
Download [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.
7082

71-
# Building
83+
# Building
7284

7385
Create a ROS 2 workspace and build this package for a given ROS 2 distro (see table above):
7486

@@ -79,7 +91,7 @@ mkdir uros_ws && cd uros_ws
7991

8092
git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro_ros_setup.git src/micro_ros_setup
8193

82-
rosdep update && rosdep install --from-path src --ignore-src -y
94+
rosdep update && rosdep install --from-paths src --ignore-src -y
8395

8496
colcon build
8597

@@ -180,7 +192,7 @@ This folder contains up to four scripts:
180192
- `configure.sh`: modifies and configure parameters of the installed dependencies. This step is **optional**.
181193
- `build.sh`: builds the firmware and create a platform-specific linked binary.
182194
- `flash.sh`: flashes the binary in the target platform.
183-
195+
184196
Some other required files inside the folder can be accessed from these scripts using the following paths:
185197

186198
```bash
@@ -211,4 +223,4 @@ see the file [3rd-party-licenses.txt](3rd-party-licenses.txt).
211223

212224
There are no known limitations.
213225

214-
If you find issues, [please report them](https://github.com/micro-ROS/micro_ros_setup/issues).
226+
If you find issues, [please report them](https://github.com/micro-ROS/micro_ros_setup/issues).

config/agent_uros_packages.repos

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@ repositories:
1111
type: git
1212
url: https://github.com/micro-ROS/drive_base.git
1313
version: master
14-
# TODO (pablogs9): Integrate Micro XRCE-DDS Agent dependency download in micro-ROS-Agent package
15-
eProsima/Micro-XRCE-DDS-Agent:
16-
type: git
17-
url: https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
18-
version: foxy
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f446re_extensions
2+
3+
pushd $EXTENSIONS_DIR > /dev/null
4+
5+
echo "Resetting firmware for $RTOS platform $PLATFORM"
6+
if lsusb -d 0483:374b; then
7+
ST_INTERFACE=interface/stlink-v2-1.cfg
8+
elif lsusb -d 0483:3748; then
9+
ST_INTERFACE=interface/stlink-v2.cfg
10+
else
11+
# TODO: add stlink v3, should it be stlink.cfg ?
12+
echo "Error. Unsuported OpenOCD USB programmer"
13+
exit 1
14+
fi
15+
openocd -f $ST_INTERFACE -f target/stm32f4x.cfg -c init -c "reset halt" -c "reset" -c "exit"
16+
17+
popd > /dev/null
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f446ze_extensions
2+
3+
pushd $EXTENSIONS_DIR > /dev/null
4+
5+
echo "Resetting firmware for $RTOS platform $PLATFORM"
6+
if lsusb -d 0483:374b; then
7+
ST_INTERFACE=interface/stlink-v2-1.cfg
8+
elif lsusb -d 0483:3748; then
9+
ST_INTERFACE=interface/stlink-v2.cfg
10+
else
11+
# TODO: add stlink v3, should it be stlink.cfg ?
12+
echo "Error. Unsuported OpenOCD USB programmer"
13+
exit 1
14+
fi
15+
openocd -f $ST_INTERFACE -f target/stm32f4x.cfg -c init -c "reset halt" -c "reset" -c "exit"
16+
17+
popd > /dev/null

0 commit comments

Comments
 (0)