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.
8 years, 3 months ago.
Cannot compile!
Hi
I just down loaded the program "LPC331_Hello_World" with the library of "LPS331_I2C.cpp" and "LPS331_I2C.h", but I cannot compile the program. The error message says below;
Error: Cannot open source input file "device.h": No such file or directory in "extras/mbed_a9913a65894f/platform.h", Line: 21, Col: 21
How could I fix the problem?
Regards
Question relating to:
1 Answer
8 years, 3 months ago.
Hi Hitotsu,
- Open the example program in the IDE
- Click the "mbed" library in the navigation pane
- Click the "Update" button in the right/sidebar panel.
- Recompile!
You might have to change the pins in main.cpp.
Cheers,
Mihail
Question:
Why do changes to the build system keep breaking projects that are tied to specific Mercurial revisions of mbed?
This has happened to me twice now as well.
Max
posted by 28 Jul 2016This has just happened to me, and it is effecting 10 of my projects. My problem is that i don't have an option to update as i am using an old library for the NRF51-DK. How does one go about finding out what changes have occurred in mbed to cause these problems?
posted by 28 Jul 2016Lots of stuff has just broken for me too (using nRF51822).
Really a bit problematic for me right now...
I think the devs must be prepping for the big official switch to mbedOS now.
posted by 28 Jul 2016Max, James, can you provide me with example programs that compiled before and that are now failing to compile?
posted by 28 Jul 2016The code that i have published on my repository no longer compiles: https://developer.mbed.org/users/Cannonball2134/code/
posted by 28 Jul 2016James, I just imported https://developer.mbed.org/users/Cannonball2134/code/I2C_Scanner/ and compiled it successfully for the nRF51822 mkit. What platform are you compiling for and am I missing something?
posted by 28 Jul 2016Hi Mihail,
Thank you for your prompt reply. The error message regarding "device.h" is solved by following your advice. Thank you. But the target still does not working well. Maybe pin configuration in main.cpp is wrong though I think I changed it correctly. I will continue to try fixing.
posted by 29 Jul 2016