UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor edhalferty
Visitor
859 Views
Registered: ‎05-29-2017

Arty LWIP example BSP failing to compile in SDK -

I'm having an issue following the example here:

https://reference.digilentinc.com/learn/programmable-logic/tutorials/arty-getting-started-with-microblaze-servers/start

(Sorry if I should ask over on the Digilent forums instead! I thought this might be an issue someone with SDK experience, and not necessarily Digilent board experience, might be able to help with).

 

The error is:

'xemacp' undeclared (first use in this function); did you mean 'xemac'?	arty_ethernet_000_bsp line 347 C/C++ Problem

 

I tracked it down to this line:

https://github.com/Xilinx/embeddedsw/blob/0c6cd096c8f81978854c782c7aa175241fc3af20/ThirdParty/sw_services/lwip202/src/contrib/ports/xilinx/netif/xadapter.c#L347

 

It's failing because neither 'XLWIP_CONFIG_INCLUDE_GEM' nor 'XLWIP_CONFIG_INCLUDE_AXI_ETHERNET' are defined a few lines above that.

 

Is there a config option I missed?

 

EDIT: I see that the example is using LWIP 141, while the latest vivado SDK pulls in LWIP 202. Could that be the problem? How would I use the older version instead?

 

0 Kudos
2 Replies
Visitor edhalferty
Visitor
834 Views
Registered: ‎05-29-2017

Re: Arty LWIP example BSP failing to compile in SDK -

I was able to get this working by making changes to the xilinx lwip driver:

 

https://github.com/Xilinx/embeddedsw/pull/48

0 Kudos
Observer davidfi1
Observer
405 Views
Registered: ‎10-08-2018

Re: Arty LWIP example BSP failing to compile in SDK -

Can you please add the workaround here?
0 Kudos