Forum: System Workbench for STM32

Mbed on Eclipse error

Hi,

I followed the tutorial “Importing an mbed program” (http://www.openstm32.org/Importing+an+mbed+program), to use my mbed software on Eclipse. However, I have an error when I want to build the project :

c:\ac6\systemworkbench\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.11.0.201610101338\tools\gcc-arm-none-eabi-5_4-2016q2-20160622-win32\arm-none-eabi\include\c++\5.4.1\arm-none-eabi\armv6-m\bits\c++config.h:485:30: fatal error: bits/cpu_defines.h: No such file or directory

But when I go to the folder, I can see the cpu_defines.h file. Furthermore, the c++config.h file is in the same folder, so Eclipse should have included the folder.

What am I missing ? Is there anywone having the same problem ?

I tried with the mbed-dev library too, but there are others errors ...

Thanks for your help,
Thibaud.

Hi Thibaud, Warning, the mbed exporter is facing issues and the exported projects are not plug-and-play.
I faced the same error : it is a bug in GCC 5.4.1.
- Download and uncompress the 5_4_2016q3 compiler version from :
https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-updateQuestion
- Right-click on your project >> Properties >> C/C++ Build >> Settings >> MCU Settings
then replace ${openstm32_compiler_path} with the path to the bin folder of the uncompressed 5_4_2016q3 compiler version;
Other post with the same subject : http://www.openstm32.org/forumthread3782Question