Report
1 month, 3 weeks ago.

MbedStudio error : mbed.h not found

Hello everyone

I test MBED STUDIO BETA with a platform ST-Discovery-L475E-IOT01A

I create a new program

File New Program

empty Mbed OS program or Mbed-OS-example-blinky

Active program

I have an error message 'mbed.h' not found

Yet the library seems well present

Can you help me

/media/uploads/cdupaty/mbedstudioproblem.jpg

Comment on this question

6 Answers

3 weeks ago.

Same problem. Not able to select target and Download Source for Libraries does nothing. I noticed my WebUSB: CMSIS-DAP driver is showing an error, not sure if this is related to not finding the target. IDK if the OS or the target needs to come first.

1 month, 3 weeks ago.

You have selected no target, that is reason why 'mbed.h' not found. Select a target manualy if is possible in the combo box or connect your target to the USB.

thank you for your reply I tried to select a target, but the answer is "There is currenlty nothing to show" The target is well-known and recognized by Windows

posted by Christian Dupaty 28 Feb 2019

So try to delete both projects, close and reopen the Studio, reconnect your board and start again. Maybe update your ST driver and board's firmware for sure. BTW do you have win10 (64bit)? https://os.mbed.com/docs/mbed-studio/0.4/introduction/system-requirements.html

posted by Jan Kamidra 28 Feb 2019

After full reinstallation of MbedStudio the problem is always the same. mbed.h not found, while the file is in the mbed folder. Yes i work with win10 64bits The ST driver is OK, i have no problem with the mbed compiler in line I have all requirements, my target is ST-Discovery-L475E-IOT01A

posted by Christian Dupaty 01 Mar 2019

You can try to delete folders in "C:\users\username" like "Mbed Programs" and all folders ".mbed-...….." then start the Mbed studio (my target was not connected during this steps). Create a new program. It will take more time cuz it will download MbedOS from the github (probably). After download is done try to select your target, after then the Build folder and an another files will be created in the project folder. Or right click on the project name and select the second option "Download Source for Libraries" I did it several times and it works.

posted by Jan Kamidra 03 Mar 2019

it worked for me! thanks a lot!

posted by Tybee van den Roovaart 03 Mar 2019
1 month, 3 weeks ago.

hi, same problem here!!

is there any solution yet?

Hi Tybee, you can try to do same as I wrote on top. However your NUCLEO-F303K8 is in the unsupported platform list for now. I found that directly in a targets list of Mbed studio.

posted by Jan Kamidra 03 Mar 2019

Hi Jan, I noticed that as well. I tried to do what you wrote above, and at first it worked for me, but when i wanted to build the program today for a different platform, all the problems came back as before. Even when i deleted the program and started a new one. Again the mbed.h file is not found. i also got exit code 1 this time.

posted by Tybee van den Roovaart 04 Mar 2019

Hi Tybee, can you tell me something more? I will try to simulate that. I see in your profile only the unsupported nucleo, so what other target did you try?

I have exported my project from the online compiler to a zip file and then I created a new empty program and put them both together. After that I selected my target (Nucleo-F446RE) and let Studio makes the Build folder then I tried to make a clean build and successfully. In the next step I changed the target (Nucleo-L152RE) and made the clean build again and after that I tried to upload in to the target and successfully.

posted by Jan Kamidra 04 Mar 2019
1 month, 3 weeks ago.

Exactly the same problem here. Any solution?

1 month, 3 weeks ago.

The same problem can not choose a goal. Error on mbed.h, how to add stm32F746NG, Described dancing with a tambourine did not help. It does not create "It does not create "after which a folder will be created in the project folder,"

1 month, 3 weeks ago.

Hi all,

Thanks for the feedback and info on this thread, we're going to focus on making the library management more robust over the next couple of weeks.

When we find the root cause of this I'll update here as well.

[edit] - one thing to try, could you delete and then re-add Mbed OS please? It might be that the library didn't download correctly and is incomplete. We plan to ship Mbed Studio with a copy of the OS in future.

Thanks, Joe

I can remove and reinstall the MBed-OS library. Mbed.h is present in the library, but main.cpp can not find it. It looks like a path problem.

posted by Christian Dupaty 05 Mar 2019

Thanks for the answer. We look forward to)

posted by Alex Lan 05 Mar 2019

To post an answer, please log in.