zthom Posted August 26, 2018 Share Posted August 26, 2018 I'm having an issue following the example here: https://reference.digilentinc.com/learn/programmable-logic/tutorials/arty-getting-started-with-microblaze-servers/start 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? Link to comment Share on other sites More sharing options...
jpeyron Posted August 27, 2018 Share Posted August 27, 2018 Hi @zthom, First i would right click on the bsp and re-generate the board support package. If that does not fix the error delete the bsp and create another bsp with the exact name. If that does not fix the error please attach a screen shot of the Vivado block design and the SDK with you error. Are you using the Arty-A7 board files? Which Arty-A7 are you using the 35T or the 100T? What version of Vivado are you using? cheers, Jon Link to comment Share on other sites More sharing options...
zthom Posted August 29, 2018 Author Share Posted August 29, 2018 Hello jpeyron. I tried to re-generate bsp and created another project. I am using official Arty-A7 files from Digilentinc github, it is 100T. I have Vivado 2018.2 In the tutorial, they are using lwip 1.4 and I am using lwip 2.2 - SDK does not offer me the old version. I have followed exactly the tutorial, event with experiments, there is a problem with compiling lwip. Without lwip, bsp can compile. Here is block design: And errors: Link to comment Share on other sites More sharing options...
Darryl Ring Posted August 29, 2018 Share Posted August 29, 2018 This appears to be a known issue in 2018.2: https://www.xilinx.com/support/answers/71330.html. It appears that support for the emaclite driver got missed in a change (https://github.com/Xilinx/embeddedsw/commit/16c05f56fcb860513d34b83a1a301fa185e06316). Their patch can't actually be applied to Xilinx/SDK/2018.2/data/embeddedsw, but the changes are small and easy to make. I've attached the file here. It should replace ThirdParty/sw_services/lwip202_v1_1/src/contrib/ports/xilinx/netif/xadapter.c. Then you can regenerate the BSP sources and it will compile. xadapter.c Link to comment Share on other sites More sharing options...
jpeyron Posted August 29, 2018 Share Posted August 29, 2018 Hi @zthom, I got the same issue in Vivado/SDK using 2018.2. I did not get these issues using Vivado/SDK 2017.4. It looks like an issue with Vivado/SDK 2018.2 as @Darryl Ring states in the above post. thank you, Jon Link to comment Share on other sites More sharing options...
zthom Posted August 30, 2018 Author Share Posted August 30, 2018 Thank you, it works now. It only needed to replace xadapter.c Link to comment Share on other sites More sharing options...
jpeyron Posted August 30, 2018 Share Posted August 30, 2018 Hi @zthom, Glad that replacing the xadapter.c fixed the issue. Thank you for sharing what you did. cheers, Jon Link to comment Share on other sites More sharing options...
neha Posted September 6, 2018 Share Posted September 6, 2018 I replaced the adapter file and its work, but I am getting error in header file too Error is same undeclared function Link to comment Share on other sites More sharing options...
jpeyron Posted September 6, 2018 Share Posted September 6, 2018 Hi @neha, I would first re-generate the board support package by right clicking on the applications bsp. If that does not fix the error then delete the bsp and create another with the exact name. Can you attach a screen shot of your block design in vivado? thank you, Jon Link to comment Share on other sites More sharing options...
mrpackethead Posted October 24, 2018 Share Posted October 24, 2018 Huge thanks for this!! I too ran into this problem. A small edit on the Tutorial would make a great addition for those new folks ( likely to be doing tutotrials ) Link to comment Share on other sites More sharing options...
Question
zthom
I'm having an issue following the example here:
https://reference.digilentinc.com/learn/programmable-logic/tutorials/arty-getting-started-with-microblaze-servers/start
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?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.