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.
10 years, 4 months ago.
why I can't compiler?
Question relating to:
3 Answers
10 years, 4 months ago.
Hello LIU SHUANG,
that error usually means that the mbed library linked to the program is not up to date and does not include code needed for your target. Please verify the TARGET chosen in the online compiler and that the mbed library is up to date (update it to the newest revision).
Regards,
0xc0170
I"m getting this same error both with mbed and mbed-src using the nRF51822 board. I just create a new program based on "Blinky LED Hello World", and It says it can't find device.h when I try to compile. I've made sure the mbed package is updated.
posted by 03 Jul 2014Brian, what revision is mbed lib? It's not just update, but have to go to Revision options where to switch to a newer version. Does that help?
posted by 03 Jul 2014Looking at the changes, it looks like device.h for the nRF51822 was removed/moved in revison 86.
posted by 03 Jul 2014It seems to be working just fine when running in betamode (http://mbed.org/betamode/)
posted by 15 Jul 201410 years, 4 months ago.
Select the folder on the left side of the compiler: My Programs / blink_led / mbed-src / targets / hal / .... only the platform (board) for which compile "main.cpp". Other clear.