Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi BillA,
I'm trying to implement LWIP in Quartus/NIOS 13.1, the example files was downloaded from https://github.com/engineeringspirit/freelwip-nios-ii . When building the project, I got error message as following: **** Build of configuration Nios II for project LWIP **** make all Info: Building D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp/ make --no-print-directory -C D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp/ [BSP build complete] Info: Compiling ethernet.c to obj/default/ethernet.o nios2-elf-gcc -xc -MP -MMD -c -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//drivers/inc -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc/ipv4 -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//FreeRTOS/inc -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//HAL/inc -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp/ -ID:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//drivers/inc -DSYSTEM_BUS_WIDTH=32 -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALTERA_TRIPLE_SPEED_MAC -DALT_LWIP -D__freertos__ -O0 -g -Wall -mhw-div -mhw-mul -mno-hw-mulx -o obj/default/ethernet.o ethernet.c ethernet.c: In function 'StatusCallback': ethernet.c:44:2: error: too few arguments to function 'print_ipad' In file included from ethernet.c:9:0: D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc/lwip_main.h:139:20: note: declared here ethernet.c:45:2: error: too few arguments to function 'print_ipad' In file included from ethernet.c:9:0: D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc/lwip_main.h:139:20: note: declared here ethernet.c:46:2: error: too few arguments to function 'print_ipad' In file included from ethernet.c:9:0: D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc/lwip_main.h:139:20: note: declared here ethernet.c: In function 'InitNetwork': ethernet.c:65:2: error: too few arguments to function 'lwip_initialize' In file included from ethernet.c:9:0: D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc/lwip_main.h:147:13: note: declared here ethernet.c: In function 'WaitOnPHY': ethernet.c:101:4: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration] ethernet.c: In function 'xEthernetRun': ethernet.c:193:2: warning: 'return' with a value, in function returning void [enabled by default] ethernet.c:146:6: warning: unused variable 'nDisconnectCnt' [-Wunused-variable] ethernet.c:143:14: warning: unused variable 'pmac' [-Wunused-variable] ethernet.c: In function 'get_ip_addr': ethernet.c:224:3: error: too few arguments to function 'print_ipad' In file included from ethernet.c:9:0: D:/works/FPGA/GRJCS331_EPL_DDR/test07/LWIP/LWIP_bsp//LwIP/inc/lwip_main.h:139:20: note: declared here make: *** [obj/default/ethernet.o] Error 1 **** Build Finished **** Please help me, Thank you.