Closed keshavchintamani closed 3 years ago
After doing some digging, the first step seems to add a new board to the config folder in micro_ros_setup. Thats pretty straighforward. That will pull this repo and the corresponding extensions. Whats not clear in the documentation is how the freertos extensions have been created. Is it possible to clone an extension and modify for my custom board using the STMCube IDE easily. or should I create a new STM32CubeProject for my specific board and copy over all the ROS2 specific extensions...
Hello, @keshavchintamani we don't have a guide or tutorial to port new boards to FreeRTOS + micro-ROS. But I can tell you which files are added to the STCubeMX.
Using the microros_olimex_e407_extensions
the files that are not generated from the micro-ROS.ioc
are:
microros_olimex_e407_extensions/FreeRTOS-Plus-POSIX/*
microros_olimex_e407_extensions/include/*
microros_olimex_e407_extensions/Inc/allocators.h
microros_olimex_e407_extensions/Inc/app.h
microros_olimex_e407_extensions/Inc/microros_transports.h
microros_olimex_e407_extensions/Src/allocators.c
microros_olimex_e407_extensions/Src/custom_memory_manager.c
microros_olimex_e407_extensions/Src/microros_transports.c
microros_olimex_e407_extensions/arm_toolchain.cmake.in
The important generated files that have been modified are:
diff --git a/microros_olimex_e407_extensions/Inc/FreeRTOSConfig.h b/microros_olimex_e407_extensions/Inc/FreeRTOSConfig.h
index 7c74a83..af7d7e8 100644
--- a/microros_olimex_e407_extensions/Inc/FreeRTOSConfig.h
+++ b/microros_olimex_e407_extensions/Inc/FreeRTOSConfig.h
@@ -44,6 +44,10 @@
/* USER CODE BEGIN Includes */
/* Section where include file can be added */
+#define configUSE_POSIX_ERRNO 1
+#define configUSE_STATS_FORMATTING_FUNCTIONS 1
+#define configUSE_APPLICATION_TASK_TAG 1
+#define INCLUDE_xTaskGetHandle 1
/* USER CODE END Includes */
/* Ensure definitions are only used by the compiler, and not by the assembler. */
Hope that this help to figure out how to modify the STCubeMX project to add micro-ROS
Please take a look here: https://github.com/micro-ROS/micro_ros_stm32cubemx_utils
Hi,
I have a STM32F407VETX based board and trying to find the right procedure to get a STM32CubeIDE project with micro-ROS. Not fully clear how to get the firmware and toolchain for this specific board ino the scripts. Any suggestions are really welcome!