Repository navigation
NuttX in micro-ROS setup #767
|
I'm trying to set up NuttX in micro_ros_setup but encountering an issue. Although I can see nuttx/ in src/micro_ros_setup/config/, when I run: roskuttan@SILENT-KILLERED:~/micro_ros_ws$ ros2 run micro_ros_setup create_firmware_ws.sh nuttx olimex-stm32-e407 Yet, the tutorial for NuttX exists in the documentation,also i followed Adding Micro-ROS to a NuttX board configuration for adding my board but since the tutorial is unmatained i don't if it will work i dont know how to go further if any body can guide me how to make this work it will be nice. |
Replies: 1 comment
|
NuttX is no longer a target of For Humble and later, micro-ROS on NuttX ships as a NuttX app: micro_ros_nuttx_app. It has branches pip3 install catkin_pkg lark-parser empy colcon-common-extensions
mkdir microros_nuttx && cd microros_nuttx
git clone -b releases/10.3 https://github.com/apache/nuttx.git nuttx
git clone -b releases/10.3 https://github.com/apache/nuttx-apps.git apps
git clone -b humble https://github.com/micro-ROS/micro_ros_nuttx_app apps/microros # match your ROS 2 distro
cd nuttx
./tools/configure.sh -l olimex-stm32-e407:nsh
kconfig-tweak --enable CONFIG_MICROROSLIB
kconfig-tweak --enable CONFIG_MICROROS_EXAMPLE
kconfig-tweak --enable CONFIG_SERIAL_TERMIOS
# enable the STM32 USART you wire to the agent (e.g. CONFIG_STM32_USARTx + its serial driver),
# or do all of this in `make menuconfig`
make -j$(nproc)
Flash If you need the old |
NuttX is no longer a target of
micro_ros_setup. It was removed in commit 817d63a ("Deprecate Nuttx on Rolling", May 2021).config/nuttxonly exists on thefoxybranch. Galactic, Humble, Jazzy and Rolling have nonuttxentry. That's whycreate_firmware_ws.shdoesn't list it, and the old BSP tutorial you linked doesn't apply anymore.For Humble and later, micro-ROS on NuttX ships as a NuttX app: micro_ros_nuttx_app. It has branches
humble,jazzy,kiltedandrolling, and its CI builds against NuttXreleases/10.3. You build it inside a normal NuttX tree, not inside a micro-ROS workspace: