cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubeMX and Eclipse IDE

slawek2
Associate II
Posted on September 05, 2014 at 14:53

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 #import
4 REPLIES 4
stm32forum
Associate II
Posted on September 05, 2014 at 16:29

For

http://www.emblocks.org/web/

there's an

http://www.emblocks.org/forum/download/file.php?id=340

.

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.

slawek2
Associate II
Posted on September 07, 2014 at 12:11

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=false
slawek2
Associate II
Posted on September 08, 2014 at 09:17

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 ( see

https://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 :)

stm32cube-t
Senior III
Posted on March 22, 2016 at 19:51

Please note you can use the officially supported  eclipse-based IDE: SW4STM32, available for download from

http://www.openstm32.org/System+Workbench+for+STM32

Best regards