Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- I have no experience with UCOS. Does it work without OS and with# define NO_SYS 1 in lwipopts.h? --- Quote End --- No, then I get this:
**** Build of configuration Nios II for project lwIP_NIOS_II_Example ****
make all
Info: Building ../lwIP_NIOS_II_Example_bsp
make --no-print-directory -C ../lwIP_NIOS_II_Example_bsp
Info: Compiling alteraTseEthernetif.c to obj/alteraTseEthernetif.o
nios2-elf-gcc -xc -MP -MMD -c -I../lwIP_NIOS_II_Example_bsp/drivers/inc -I../lwIP_NIOS_II_Example_bsp/HAL/inc -I../lwIP_NIOS_II_Example_bsp -I../lwIP_NIOS_II_Example_bsp/drivers/inc -I. -Isrc/include -Isrc/include/ipv4 -DSYSTEM_BUS_WIDTH=32 -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALTERA_TRIPLE_SPEED_MAC -DALT_SINGLE_THREADED -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/alteraTseEthernetif.o alteraTseEthernetif.c
In file included from alteraTseEthernetif.c:47:
src/include/lwip/sys.h:107: error: expected ')' before '*' token
src/include/lwip/sys.h:110: error: expected ')' before '*' token
src/include/lwip/sys.h:113: error: expected ')' before '*' token
src/include/lwip/sys.h:116: error: expected ')' before '*' token
src/include/lwip/sys.h:119: error: expected ')' before '*' token
src/include/lwip/sys.h:123: error: expected ')' before '*' token
src/include/lwip/sys.h:142: error: conflicting types for 'sys_arch_sem_wait'
./arch/sys_arch.h:60: error: previous declaration of 'sys_arch_sem_wait' was here
src/include/lwip/sys.h:185: error: conflicting types for 'sys_arch_mbox_fetch'
./arch/sys_arch.h:57: error: previous declaration of 'sys_arch_mbox_fetch' was here
alteraTseEthernetif.c: In function 'low_level_init':
alteraTseEthernetif.c:83: warning: value computed is not used
make: *** Error 1
Maybe I should try 1.32, since the driver is old? Or maybe I should use hello world example with RTOS enabled? One guy here (afaik) on this thread succeeded running 1.4 or 1.4rc1, so I hope he could help me here. Ofcourse it would be perfect to get an example of working system with uC/OS-II and lwIP, but I still hope to do it myself.