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.
6 years, 3 months ago.
Cannot compile for RedBearLab Nano v2
Its shows while compiling blinky sketch:
Error: Cannot open source input file "device.h": No such file or directory in "extras/mbed-os/mbed-os.lib/hal/api/platform.h", Line: 19, Col: 21
Yes, Ive tried update libs
Question relating to:
1 Answer
6 years, 3 months ago.
Hi there,
I am assuming you are using the offline Mbed CLI to compile Blinky for the RedBear BLENANO 2 as this board is not yet available in the online compiler.
Are you compiling the latest mbed-os-example-blinky (the Blinky example that uses the latest version of Mbed OS 5)?
I compile the above example using the following command in my terminal: mbed compile -t [toolchain] -m rblab_blenano2
and I am not able to replicate the error you are seeing. Can you please make sure you are using the correct version of Mbed? You can read about the differences between Mbed OS 2 and 5 here: https://os.mbed.com/docs/v5.9/tutorials/major-releases.html
Please let me know if you have any questions!
- Jenny, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!