7 years ago.

mbed_config.h

Have been attempting to migrate to using Eclipse as IDE. Finally got to the point of running build and get this error.

Compile: C027.cpp cc1plus: fatal error: mbed_config.h: No such file or directory compilation terminated. make[1]: * [C027-REVB/C027.o] Error 1 make: * [all] Error 2

I can only assume the project export function did not export mbed_config.h.

Is this a bug?

Not an answer but I have had this same issue with mbed_config.h for a couple of weeks now.

posted by Harry Willis 05 Apr 2017

2 Answers

7 years ago.

It is a known bug. https://github.com/ARMmbed/mbed-os/issues/4075

is mbed_config.h something we can create manually?

posted by Neil Quigg 05 Apr 2017
7 years ago.

The mbed_config.h appears to be a very simple file. Here is one that was generated for my Nucleo board.

// Automatically generated configuration file.
// DO NOT EDIT, content will be overwritten.

#ifndef __MBED_CONFIG_DATA__
#define __MBED_CONFIG_DATA__

// Configuration parameters
#define MBED_CONF_CORE_STDIO_BAUD_RATE        9600 // set by library:core
#define MBED_CONF_NSAPI_PRESENT               1    // set by library:nsapi
#define MBED_CONF_RTOS_PRESENT                1    // set by library:rtos
#define MBED_CONF_CORE_STDIO_CONVERT_NEWLINES 0    // set by library:core
// Macros
#define UNITY_INCLUDE_CONFIG_H                     // defined by library:utest

// RTOS Parameters
#define OS_TASKCNT         20

#endif


Thanks Graham. I found one in an old export I had from a few months ago. Finally got Eclipse working with gcc-arm-none-eabi and loading binaries into our C027. Problem is even though it compiles and runs it introduces so many bugs I have abandoned the idea and gone back to the online IDE. Also discovered that there is no easy way to run debug with the C027, it's like going back to the 1980s.

posted by Neil Quigg 08 Apr 2017