Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 10 months 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
13 Answers
5 years, 9 months 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.
5 years, 10 months 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 28 Feb 2019So 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 28 Feb 2019After 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 01 Mar 2019You 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 03 Mar 20195 years, 7 months 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.
5 years, 10 months 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 03 Mar 2019Hi 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 04 Mar 2019Hi 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 04 Mar 20195 years, 10 months 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,"
5 years, 6 months 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?
5 years, 10 months 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
5 years, 6 months 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
5 years, 8 months 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 08 May 20195 years, 8 months ago.
Same problem here... And need urgent solution/update from developers i think..
And please speed up studio opening.. Too slow...
Thanks
5 years, 8 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
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