Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSeems like this causes an error-chain :)
Now I get error here:# if LWIP_TIMERS && (MEMP_NUM_SYS_TIMEOUT < (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT))
# error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts"# endif
Error:
src/core/init.c:152:4: error:# error "MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts"
Either I need to increase MEMP_NUM_SYS_TIMEOUT or disable some options like DHCP, etc. I choose first one and increase MEMP_NUM_SYS_TIMEOUT from 3 to 5. Then I get these errors:
obj/src/core/timers.o: In function `sys_timeouts_init':
C:\Projects\cycloneIII_3c120_dev_niosII\software\lwIP_NIOS_II_Example/src/core/timers.c:245: undefined reference to `sys_now'
obj/src/core/timers.o: In function `sys_check_timeouts':
C:\Projects\cycloneIII_3c120_dev_niosII\software\lwIP_NIOS_II_Example/src/core/timers.c:365: undefined reference to `sys_now'
obj/src/core/timers.o: In function `sys_restart_timeouts':
C:\Projects\cycloneIII_3c120_dev_niosII\software\lwIP_NIOS_II_Example/src/core/timers.c:405: undefined reference to `sys_now'
collect2: ld returned 1 exit status
make: *** Error 1
sys_now() is prototyped in sys.h, but I can't find the function itself. P.S. Maybe someone use lwIP with MicroC/OS-II?