Errors Compiling with Mbed Framework

I am trying to use the mbed framework with the Nucleo F401-re. When I compile, I am getting the following error:

In file included from C:\Users\taylorb.platformio\lib\minar_ID1238/minar/minar.h:22:0,
from c:\users\taylorb.platformio\lib\mbed-drivers_id962\mbed-drivers\mbed.h:29,
from C:\Users\taylorb.platformio\lib\mbed-drivers_ID962\mbed/mbed.h:20,
from src\main.cpp:1:
C:\Users\taylorb.platformio\lib\minar-platform_ID1240/minar-platform/minar_platform.h:22:10: fatal error: minar-platform/minar_platform_types.h: No such file or directory
#include “minar-platform/minar_platform_types.h”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I cannot compile even the simple blink program. Please offer assistance.

What program are you trying to compile? Can you give a minimal example and the entire platformio.ini?

I am trying to compile the following simple blink program:

#include <mbed.h>

DigitalOut led1 (LED1);

int main() {

// put your setup code here, to run once:

while(1) {
    while(true){
        led1 = !led1;
        wait(0.5);
    }
    // put your main code here, to run repeatedly:
}

}

and my platformio.ini is:
[env:nucleo_f401re]
platform = ststm32
board = nucleo_f401re
framework = mbed

Please add lib_ignore = mbed-drivers and retry. You shouldn’t need that lib and also not “MINAR”.

1 Like

Thank you, that fixed the problem.