yoneken / rosserial_stm32

This is a part of [rosserial](https://github.com/ros-drivers/rosserial) repository to communicate with ROS system through a USART for STM32 embedded system.
BSD 2-Clause "Simplified" License
218 stars 72 forks source link

STM32CubeIDE project folder structure changed #26

Open evenlund opened 3 years ago

evenlund commented 3 years ago

The project structure in STM32CubeIDE has changed since this code was released so that the src and inc folders are moved from the project main folder to Core. This folder is already included in "source location" when importing the project.

So far I have failed to compile the project properly in STM32CubeIDE both for Windows and Linux. I am importing from existing ioc file with targeted language C++, which generates a main.c file with the hardware setup, but the code from the main.cpp file is left untouched. Should I rename the main.c to main.cpp and copy-paste the code from the original main.cpp to make it work? Would I also need to convert the project to C++ at some point - I see that this option is available. Could you please rewrite the instructions to make it work for newer versions of STM32CubeIDE and perhaps describe every step of the process?

I find this project really great and am really hoping for it to work.

yoneken commented 3 years ago

Thank you very much for your great advice. I will check it!