cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
golson
Scholar
Scholar
13,170 Views
Registered: ‎04-07-2008

ML505 my Webserver design problems

Hi,
  I tried to create a project for the ml505 board using part of XAPP433 source code.  So I used the
 xilkernel, lwip, and xilmfs  libraries and created the BSP files apparently there was no problem at that point.
 
Then I created a project I called WEBSERVER and added the XAPP433 source files (.c and .h files ).
 
When I tried to compile the project I get several errors.  I added compiler options to include the xilkernel, lwip, and xilmfs in the path.
 
I don't know what to do now.  Am I using the wrong compiler? C vs C++ or some other problem.
 
Thank You,
  Gary Olson
 
PS.  I would like to find a lwip example for the ML505 board.  at this time it is unavailable on the website.
 
 
 
 
At Local date and time: Wed Apr 09 16:36:57 2008
 xbash -q -c "cd /cygdrive/c/BSB_PRACTICE/LWIP_TWO/; /usr/bin/make -f system.make WEBSERVER_program; exit;" started...
mb-gcc -O2 /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c  -o WEBSERVER/executable.elf \
    -mno-xl-soft-mul -mxl-pattern-compare -mcpu=v7.10.a   -g    -I./microblaze_0/include/  -IWEBSERVER/src/  -L./microblaze_0/lib/  \
 -lxilkernel -llwip -lxilmfs 
In file included from ./microblaze_0/include/lwip/debug.h:35,
                 from ./microblaze_0/include/lwip/opt.h:37,
                 from ./microblaze_0/include/lwip/api_msg.h:35,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/arch/cc.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from ./microblaze_0/include/lwip/api_msg.h:36,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/pbuf.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbuf_header'
./microblaze_0/include/lwip/pbuf.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbuf_free'
./microblaze_0/include/lwip/pbuf.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbuf_clen'
In file included from ./microblaze_0/include/lwip/api_msg.h:37,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/sys.h:99: error: expected ')' before 'count'
In file included from ./microblaze_0/include/lwip/ip.h:39,
                 from ./microblaze_0/include/lwip/api_msg.h:39,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/ip_addr.h:142: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ip_addr_isbroadcast'
In file included from ./microblaze_0/include/lwip/api_msg.h:39,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/ip.h:48: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:48: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:48: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:50: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:50: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:50: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/udp.h:38,
                 from ./microblaze_0/include/lwip/api_msg.h:41,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/inet.h:48: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/api_msg.h:41,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/udp.h:56: error: expected specifier-qualifier-list before 'u8_t'
In file included from ./microblaze_0/include/lwip/icmp.h:41,
                 from ./microblaze_0/include/lwip/tcp.h:41,
                 from ./microblaze_0/include/lwip/api_msg.h:42,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/netif.h:101: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/netif.h:163: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'netif_is_up'
In file included from ./microblaze_0/include/lwip/api_msg.h:42,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/tcp.h:57: error: expected ')' before 'prio'
./microblaze_0/include/lwip/tcp.h:71: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:89: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:91: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:219: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/tcp.h:317: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/tcp.h:404: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_segs_free'
./microblaze_0/include/lwip/tcp.h:405: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_seg_free'
./microblaze_0/include/lwip/tcp.h:419: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:421: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:421: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:422: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:422: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/api.h:41,
                 from ./microblaze_0/include/lwip/api_msg.h:44,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/raw.h:43: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/raw.h:62: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/raw.h:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'raw_input'
In file included from ./microblaze_0/include/lwip/api_msg.h:44,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/api.h:152: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:71:
./microblaze_0/include/lwip/api_msg.h:78: error: expected specifier-qualifier-list before 'u8_t'
In file included from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:73:
./microblaze_0/include/netif/etharp.h:52: error: expected specifier-qualifier-list before 'u8_t'
In file included from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:75:
./microblaze_0/include/lwip/sockets.h:39: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/sockets.h:47: error: expected specifier-qualifier-list before 'u8_t'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XEmacIf_ConfigTable'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c: In function 'serverAppThread':
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:138: error: 'XEmacIf_Config' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:138: error: (Each undeclared identifier is reported only once
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:138: error: for each function it appears in.)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:138: error: 'xemacif_ptr' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:138: error: 'XEmacIf_ConfigTable' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:146: error: 'u8_t' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:146: error: expected expression before ')' token
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:171: error: 'xemacif_init' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:177: error: 'XPAR_OPB_INTC_0_ETHERNET_MAC_IP2INTC_IRPT_INTR' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:178: error: 'XEmac_IntrHandlerFifo' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:186: error: 'struct sockaddr_in' has no member named 'sin_family'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:187: error: 'struct sockaddr_in' has no member named 'sin_port'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:188: error: 'struct sockaddr_in' has no member named 'sin_addr'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c: In function 'main':
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:255: error: 'XPAR_PUSH_BUTTONS_POSITION_DEVICE_ID' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/web_server.c:260: error: 'XPAR_LEDS_4BIT_DEVICE_ID' undeclared (first use in this function)
In file included from ./microblaze_0/include/lwip/debug.h:35,
                 from ./microblaze_0/include/lwip/opt.h:37,
                 from ./microblaze_0/include/lwip/api_msg.h:35,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/arch/cc.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from ./microblaze_0/include/lwip/api_msg.h:36,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/pbuf.h:101: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbuf_header'
./microblaze_0/include/lwip/pbuf.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbuf_free'
./microblaze_0/include/lwip/pbuf.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pbuf_clen'
In file included from ./microblaze_0/include/lwip/api_msg.h:37,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/sys.h:99: error: expected ')' before 'count'
In file included from ./microblaze_0/include/lwip/ip.h:39,
                 from ./microblaze_0/include/lwip/api_msg.h:39,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/ip_addr.h:142: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ip_addr_isbroadcast'
In file included from ./microblaze_0/include/lwip/api_msg.h:39,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/ip.h:48: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:48: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:48: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:50: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:50: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/ip.h:50: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/udp.h:38,
                 from ./microblaze_0/include/lwip/api_msg.h:41,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/inet.h:48: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/api_msg.h:41,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/udp.h:56: error: expected specifier-qualifier-list before 'u8_t'
In file included from ./microblaze_0/include/lwip/icmp.h:41,
                 from ./microblaze_0/include/lwip/tcp.h:41,
                 from ./microblaze_0/include/lwip/api_msg.h:42,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/netif.h:101: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/netif.h:163: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'netif_is_up'
In file included from ./microblaze_0/include/lwip/api_msg.h:42,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/tcp.h:57: error: expected ')' before 'prio'
./microblaze_0/include/lwip/tcp.h:71: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:89: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:91: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:219: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/tcp.h:317: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/tcp.h:404: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_segs_free'
./microblaze_0/include/lwip/tcp.h:405: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tcp_seg_free'
./microblaze_0/include/lwip/tcp.h:419: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:421: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:421: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:422: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/tcp.h:422: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/api.h:41,
                 from ./microblaze_0/include/lwip/api_msg.h:44,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/raw.h:43: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/raw.h:62: error: expected declaration specifiers or '...' before 'u8_t'
./microblaze_0/include/lwip/raw.h:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'raw_input'
In file included from ./microblaze_0/include/lwip/api_msg.h:44,
                 from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/api.h:152: error: expected declaration specifiers or '...' before 'u8_t'
In file included from ./microblaze_0/include/lwip/tcpip.h:35,
                 from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:38:
./microblaze_0/include/lwip/api_msg.h:78: error: expected specifier-qualifier-list before 'u8_t'
In file included from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:40:
./microblaze_0/include/netif/etharp.h:52: error: expected specifier-qualifier-list before 'u8_t'
In file included from /cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/http.c:42:
./microblaze_0/include/lwip/sockets.h:39: error: expected specifier-qualifier-list before 'u8_t'
./microblaze_0/include/lwip/sockets.h:47: error: expected specifier-qualifier-list before 'u8_t'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c: In function 'getMacAddr':
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c:96: warning: incompatible implicit declaration of built-in function 'memset'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c:112: error: 'XPAR_RS232_UART_BASEADDR' undeclared (first use in this function)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c:112: error: (Each undeclared identifier is reported only once
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c:112: error: for each function it appears in.)
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c: In function 'readIP':
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c:243: warning: incompatible implicit declaration of built-in function 'memset'
/cygdrive/c/BSB_PRACTICE/LWIP_TWO/WEBSERVER/src/serial_io.c:251: error: 'XPAR_RS232_UART_BASEADDR' undeclared (first use in this function)
make: *** [WEBSERVER/executable.elf] Error 1
Done!
 
 
 
0 Kudos
9 Replies
centaur19
Xilinx Employee
Xilinx Employee
13,163 Views
Registered: ‎08-01-2007

Gary,

Which version of the tools are you using and which version of lwip?
0 Kudos
golson
Scholar
Scholar
13,160 Views
Registered: ‎04-07-2008

This time I used the latest lwip 3.0 or the default one.  and the default version of these xilkernel,  xilmfs 
which should also be the latest libraries.
 
I am using Version 10_1 EDK/ISE FOUNDATION.
 
Gary
 
0 Kudos
centaur19
Xilinx Employee
Xilinx Employee
13,142 Views
Registered: ‎08-01-2007

Gary,

If you can wait for another week, you can use XAPP1026, which should be published soon.
0 Kudos
faber
Visitor
Visitor
13,090 Views
Registered: ‎04-16-2008

Hi all, I have the same problem: I didn't find any downloadable example based on lwIP 3.0 for my ML505 board.
Can you advice me where a working project (even ISE9.2i based) could be found on Xilinx WebSite?
Actually, I would be more interested in UDP protocol example: is there anything around?
Thank you
Fabrizio
0 Kudos
golson
Scholar
Scholar
13,083 Views
Registered: ‎04-07-2008

There is a App note that is now available that discusses Raw Sockets and Socket Mode Sockets at the following link.  Also you can find the Project Files.
 

XAPP1026 - LightWeight IP (lwIP) Application Examples  http://www.xilinx.com/support/documentation/application_notes/xapp1026.pdf

 11-APR-08 New Document

 

0 Kudos
faber
Visitor
Visitor
13,017 Views
Registered: ‎04-16-2008

Thanks a lot! That's what I was waiting for, though the examples page is not updated yet, so the xapp1026 doesn't appear as ready.
Fabrizio
0 Kudos
forrestoff
Participant
Participant
12,155 Views
Registered: ‎03-03-2008

May someone post a link to a 9.2 version of this design?

 

Thanks! 

0 Kudos
forrestoff
Participant
Participant
11,886 Views
Registered: ‎03-03-2008

Sorry--I should have been more specific:

 

Is there a 9.2 reference design for the ML505 development board, similar to the 10.1 design above?

0 Kudos