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.
7 years, 10 months ago.
Offline compile
Hi,
how can I use the X-Nucleo-NFC01A1 Hello World example in my offline compiler?
If I compile it in the online ide everything works. But I don't know how to use the redpository offline. I am normally using mbed CLI to create and compile my projects. I tried just copying the NDefLib, the X_Nucleo_NFC01A1 lib and the main.cpp to my mbed-os-program and compile it with the mbed-cli. Compiling worked but when I am flashing it to the MCU I am getting " Failed to init X_NUCLEO_NFC01A1 expansion board! Error:0x11"
So the question is: Can I use this example with mbe-os. If not how else can I use the example?
Question relating to:
1 Answer
7 years, 10 months ago.
Hi Nick,
You should be able to import your program with the following command:
mbed import http://mbed.org/teams/ST/code/HelloWorld_NFC01A1
At that point you should be able to run "mbed compile" like normal.