Nios Port (FreeRTOS 7.3.0 + Altera 11) Example Project Fails to Compile

blipton wrote on Sunday, June 01, 2014:

I’ve been testing the sample webserver using Altera’s nichestack/ucosii, and would like now to test a webserver using lwip/freertos…

unfortunately, while alt-freertos-lwip-install.bat seems to install fine, the example application doesn’t compile.
ethernet.c:46: error: too few arguments to function ‘print_ipad’
ethernet.c:65: error: too few arguments to function ‘lwip_initialize’

I also get a bunch of warnings, that maybe don’t matter now, but could be an issue once it gets to the linker stage:
echo_server.c:35: warning: implicit declaration of function ‘close’
echo_server.c:59: warning: implicit declaration of function ‘read’
echo_server.c:61: warning: implicit declaration of function ‘write’

I’m using an Altera bemicro board with a supported phy adapter with the required qsys naming convention, along with…

FreeRTOS v7.3.0 and Altera Nios 11.1 since the freertos port seems to have been tested against these software versions:

I probably could start hacking things up to at least compile, but I’m wondering if theres something obvious why the example project doesn’t compile out of the box. Is there any project property flags that need to be set?

rtel wrote on Monday, June 02, 2014:

I think the code you are referring to is a contributed port and/or demo, so unfortunately I am not able to support it. If you post your question in the forum that hosts the demo then the original contributor may see it and be able to reply.

There is an official FreeRTOS demo for the NIOS, although it is somewhat old, and there is a good probability it too would not build as I’m sure they have changed the tools several times since it was created. That said I know WITTENSTEIN (the commercial partner company who provide FreeRTOS as OpenRTOS) have been using the port on more than one occasion recently.

Richard Barry.