This tool can be used to import projects generated by STM32CubeMX tool inside an Eclipse project created with the GNU ARM Eclipse plugin. This release supports also the import of Middleware libraries (FatFS, LwIP, FreeRTOS, etc).
It can be easily used in this way:
- Generate a new Eclipse project using the GNU ARM Eclipse plugin as described in this blog post or in this book.
- Close the prject once generated
- Create a new CubeMX project for your MCU or development board. 2. Generate the C code from CubeMX project selecting SW4STM32 as Tool-chain.
- Launch the CubeMXImporter tool with the following command:
$ python cubemximporter.py <path-to-eclipse-project> <path-to-cubemx-project>
- Open again the Eclipse project and do a refresh of the source tree.
The whole procedure is better described here
CubeMXImporter works both with Python 2.7 and 3.x. It requires the
lxml library. Linux and MacOS X users can install it using pip:
$ pip install lxml
while Windows users can download this pre-compiled package.