2014-09-05 05:53 AM
Hi,
stm32cubeMX is a very convinient tool that generates code and projects for some commercial IDEs. Unfortunatelly I'm not using those IDEs so I'm left alone with a huge amount of C Code and no instructions how to use it :) Does anyone out there know any simple method to import that code into a working project in eclipse ide? Or maye you have any scripts for converting for example TrueStudio project into Eclipse one? Thanks! #eclipse #stm32cubemx #import2014-09-05 07:29 AM
For
there's an . Generate your code in Cubemx for Atolic TrueStudio, run the translator (exe can be found in the bin/debug dir). Open the genrated *.ebp with Em::blocks and there you go.2014-09-07 03:11 AM
Thanks! It looks really promissing altrough after translating I get a bunch of errors during building in em::blocks, for example:
.\Src\freertos.c|36|fatal error: FreeRTOS.h: No such file or directory .\Inc\fmc.h|45|error: unknown type name 'SDRAM_HandleTypeDef' .\Src\fmc.c|49|error: unknown type name 'FMC_SDRAM_TimingTypeDef' and more... can you please take a look at my ioc from stm32CubeMX ( see this post attachment ) and advice on what am I missing? I'm using em::blocks v. 2.20 Thanks a lot! ________________ Attachments : test.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0ug&d=%2Fa%2F0X0000000bfU%2FmCnU_pzi5B5Y_PEyQ72PWezSDBBqXHx9qLc4mz8.tpE&asPdf=false2014-09-08 12:17 AM
Okay, the problem with this translator was it is not really parsing all of the project XML, some of its parts are hardcoded.
In this case the problematic part were lines 198 to 201 ( seehttps://github.com/Bardi/STM32CubeMX_EmBlocks/blob/master/STM32Cube_EmBlocks/Form1.cs
). They hardcoded include paths there but only basic and not those responsible for FreeRTOS. After adding:<Add directory=''.\Middlewares\Third_Party\FreeRTOS\Source\include'' />
<Add directory=''.\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS'' /> <Add directory=''.\Middlewares\Third_Party\FreeRTOS\Source\portable\Gcc\Arm_cm4f'' /> into ebp compiler part everything runs smoothelly :)2016-03-22 11:51 AM
Please note you can use the officially supported eclipse-based IDE: SW4STM32, available for download from
Best regards