7 months, 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

Finally !!!! version 0.6 corrected the problem. I will be able to try MBED Studio after six months of waiting. Thanks to the development team for monitoring

posted by Christian Dupaty 16 Sep 2019
Comment on this question

13 Answers

6 months, 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.

7 months, 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
4 months, 1 week ago.

Having the same problem. everything was working correctly yesterday, but today when I open MBED Studio, error could not find mbed.h.

With all due respect, because I like the mbed os, API etc, would it not have been more sensible to provide a full featured plugin to VSCode instead of creating a custom version.

Hello The first message was sent three and a half months ago. Since it has had no progress, I gave up using MBEDSTUDIO and I'm happy with the online compiler. I do not know why MBED engineers do not deal with this problem that seems related to Windows

posted by Christian Dupaty 17 Jun 2019
7 months, 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
7 months, 3 weeks ago.

Exactly the same problem here. Any solution?

7 months, 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,"

3 months, 4 weeks ago.

same problem here - this is crazy - i have an active program, mbed-os is inside the project directory, i can see mbed.h yet it isn't seen by the IDE. Surely this can be fixed?

7 months, 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
3 months, 3 weeks ago.

Hi,

As Joe mentioned Mbed Studio team is intensively working on updating the library management functionality. Our primary focus is on improving the stability and on adding new features to it. It is coming soon.

In the meantime can I ask you to check if you can reproduce this issue in the latest version of Mbed Studio 0.5.3 ? Do not hesitate to use Mbed Studio built-in feature to report issues (Help->Report an Issue). It provides an easy way to attach logs. It helps us a lot to quickly investigate and find the cause of an issue.

- Arek Zaluski

Hello Arek

I want to share a simple solution.

I downloaded 0.5.3 Sometimes i got mbed.h not found error again... I tried to set active program again... This selection solved my problem...

PS. You need to wait 5-10 seconds for indexing also..

Regards

posted by Kamil M 03 Jul 2019

Ca u also share the what the latest version of mbed studio in website? It is very hard to find.. Or may be i couldnt find...

posted by Kamil M 03 Jul 2019
5 months, 3 weeks ago.

hello

I'm new on this dev .

I have the same issue with this project . What can i do ?

regard

Hi parabole,

you can try steps what I wrote above but keep in mind, the Mbed Studio is still in beta version so you have three options

  • try to play with the studio and maybe you will find correct way for you
  • wait for official release
  • use the Mbed online compiler or another IDE

Best regards J.

posted by Jan Kamidra 08 May 2019

thank you for you reply .

I'm newbie ...

with wich nucleo board the import is OK without error ?

Thank you ?

posted by parabole parabole 08 May 2019

I am using f401re nucleo. By setting the active program again from context menu error disappeared each time.

posted by Kamil M 03 Jul 2019
5 months, 2 weeks ago.

Same problem here... And need urgent solution/update from developers i think..

And please speed up studio opening.. Too slow...

Thanks

2 months, 1 week ago.

same problems on 5.3, trying to find out a solution

5 months ago.

Hi,

i have got the same problem. I use a Nucleo F411RE and Mbed Studio 0.5 and mbed 5.12...i opened the mbed-os-example-blinky...i tried to build the code but the studio said mbed.h file not found

Is there a new solution to run the code in the mbed studio...??

Thanks

bye bye


You need to log in to post a question