6 years, 1 month ago.

LWIP

Hello all,

I'm using Nucleo-F429ZI board. I've been importing LWIP libraries from different repositories. Following are the steps: 1) Click on "import" from mbed compiler 2) Search lwip (most updated version is 1.4.1) 3) Import it to my project 4) Include "lwip/include/..." in main.cpp and compile. However, I found similar issues from all the LWIP libraries while compiling. Error: Too few arguments in invocation of macro "ip_addr_set_any" in "lwip/lwip-1_4_0/src/api/netbuf.c", Line: 64, Col: 32 or, Error: Too few arguments in invocation of macro "ip_addr_set_any" in "lwip/lwip-1_4_1/src/api/netbuf.c", Line: 64, Col: 32

When I comment out this line (ip_addr_set_any) from netbuf.c, I found another errors and so on. Is there way to solve this matter?

Thank you in advance!

1 Answer

6 years ago.

Hello D Y,

Because LwIP is integrated into MBED OS-5, rather than importing LwIP libraries from a repository try to add an mbed_app.json file with the following content to your project (when using the online compiler, click on the v arrow located on the New button ... ):

mbed_app.json

{
    "target_overrides": {
        "NUCLEO_F429ZI": {
            "target.features_add": ["LWIP"]
        }
    }
}

Accepted Answer