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!

AR# 35787

12.1 EDK: How do I enable UDP debugging with LWIP

Description

The software platform settings for LWIP do not provide a mechanism to enable UDP debugging.

Solution

To enable this feature a define must be added to the lwipopts.h file.

This file is automatically generated by a TCL script.

In order to add the define in a way that will not be removed by the tools it is necessary to modify the LWIP TCL script.

The script is located in "EDK\sw\ThirdParty\sw_services\lwip130_v{x}_{y}_a\data" where {x} is the major version number and {y} is the minor version number.

The function that needs to me modified is "generate_lwip_opts".

An additional "puts" statement is required similar to the following:

puts $lwipopts_fd "\#define UDP_DEBUG (LWIP_DBG_LEVEL_SEVERE | LWIP_DBG_ON)"

AR# 35787
Date Created 05/20/2010
Last Updated 09/03/2014
Status Active
Type General Article
Devices
  • Spartan-3
  • Spartan-3 XA
  • Spartan-3A
  • More
  • Spartan-3A DSP
  • Spartan-3AN
  • Spartan-3E
  • Spartan-6 LX
  • Spartan-6 LXT
  • Virtex-4 FX
  • Virtex-4 LX
  • Virtex-4 QPro/R
  • Virtex-4 SX
  • Virtex-5 FXT
  • Virtex-5 LX
  • Virtex-5 LXT
  • Virtex-5 SXT
  • Virtex-5 TXT
  • Virtex-5Q
  • Virtex-6 CXT
  • Virtex-6 HXT
  • Virtex-6 LX
  • Virtex-6 LXT
  • Virtex-6 SXT
  • Less
Tools
  • EDK - 11.1
  • EDK - 11.2
  • EDK - 11.3
  • More
  • EDK - 11.4
  • EDK - 11.5
  • EDK - 12.1
  • Less
IP
  • XPS LL TEMAC
  • XPS Ethernet Lite