micro_ros_setup icon indicating copy to clipboard operation
micro_ros_setup copied to clipboard

How to get MicroROS thread support for Zephyr

Open Johannes-42 opened this issue 1 year ago • 1 comments

Issue template

  • Hardware description: Olimex STM32-E407
  • RTOS: Zephyr
  • Installation type: -
  • Version or commit hash: -

Steps to reproduce the issue

Set up MicroROS like in the Tutorial: https://micro.ros.org/docs/tutorials/core/first_application_rtos/zephyr/ Then add: "microxrcedds_client": { "cmake-args": [ "-DUCLIENT_PROFILE_MULTITHREAD=ON" ] } to the app-colcon.meta file.

Expected behavior

Enable multithreading.

Actual behavior

zephyr/microros_ws/firmware/mcu_ws/eProsima/Micro-XRCE-DDS-Client/include/uxr/client/profile/multithread/multithread.h:49:20: error: field 'impl' has incomplete type 49 | struct k_mutex impl;

Additional information

Same as https://github.com/micro-ROS/micro_ros_setup/issues/668 but for Zephyr and not freeRTOS Which directories do I need to include? (I guess in the arm_toolchain.cmake.in)

Johannes-42 avatar Feb 13 '24 11:02 Johannes-42

@pablogs9 Do you know what can cause error?

czarekk215 avatar May 13 '24 06:05 czarekk215