5 years, 7 months ago.

"No Network Configuration" error in new program

In the online compiler:

  1. Create a new program using the Empty Program template.
  2. Import the latest mbed-os library.
  3. Add file main.cpp and add code:

int main() {
    while(1);
    return 1;
}

Compile produces error

#error directive [NOT_SUPPORTED] No network configuration found for this target.

from file extras/mbed-os.lib/TEST_APPS/device/socket_app/cmd_ifconfig.cpp

1 Answer

5 years, 7 months ago.

Hi Peter,

In the online compiler, please make sure you have selected a target board for your application in the top right hand corner of the screen, as seen in the screenshot below:

/media/uploads/jplunkett/screen_shot_2018-09-27_at_2.25.28_pm.png

Also, make sure you include the Mbed header file at the top of your main.cpp file:

#include "mbed.h"

int main() {
    while(1);
    return 1;
}

Then click "Compile".

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!

Accepted Answer