01-28-2011 03:39 PM
I am using XAPP1026 to use Ethernet for ML506 and ML605 boards. I was able to make the basic XAPP1026 work that uses static IP address. Now I need to enable DHCP. As you probably know XAPP1026 uses lwIP 1.3 and it is commonly used by Xilinx guys. There is a fuzzy comment in the standalone version of XAPP1026 code to do so, but it's not clear to me. It would be appreciated if someone could shed some lights on how to write a code to enable DHCP.
01-31-2011 10:41 AM
A good place to start would be the LwIP manual. http://www.xilinx.com/support/documentation/sw_manuals/xilinx12_4/oslib_rm.pdf
A simple search on DHCP would list out the options that need to be set up. For example, options to turn off static IP addressing.
Hope this helps...
01-31-2011 03:05 PM
Thanks for pointing out this document. This document in part talks about lwIP library and its settings. I think I have to rephrase my question. I need advice to write a code to use DHCP functionality of lwIP. For example, what functions of lwIP do I need to call for DHCP, in what order, and so on?
02-02-2011 10:24 AM
I personally find that lwip wiki has more information when it comes to writing custom applications. For example this is the section I found on enabling DHCP in LwIP.
Once you have this general idea, the Xilinx LwIP datasheet will give you the specific function calls to use.
Hope this helps ...
01-12-2014 01:16 PM
01-16-2014 06:15 AM
DHCP is enabled (default) or disabled via the board support package settings. To change setting click on the lwip to configure library. Then it is just necessary to include the proper calls in the code which I believe are shown in the xapp 1026 sample.