cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,794 Views
Registered: ‎09-10-2015

Some LWIP v1.7 settings missing last figure at copying parameters to system.mss

FYI.

In addition to https://forums.xilinx.com/t5/Embedded-Development-Tools/SDK-2016-4-FreeRTOS-LwIP-BSP-sample-echo-application-not/m-p/747045/highlight/true#M41108

 

While transferring my designs from Vivado SDK 2015.4 to SDK 2016.4 I got error messages around LWIP 1.7 files in the BSP project.

Some investigations leads to a failure in the transfer process from the “Board Support Package Settings” window to the source file system.mss.

When changing the 'api_mode' the predifined choosen value will be stored in the system.mss file.

Same with 'temac_adapter_options/phy_link_speed'

 

Unfortunately the last figure of the choosen parameter will not be stored in the system.mss file.

The LWIP sectiojn will looks like (choosen for RAW_API and link speed of 1000Gb/s):

 

BEGIN LIBRARY

PARAMETER LIBRARY_NAME = lwip141

PARAMETER LIBRARY_VER = 1.7

PARAMETER PROC_INSTANCE = ps7_cortexa9_0

PARAMETER api_mode = RAW_AP

PARAMETER phy_link_speed = CONFIG_LINKSPEED100

END

 

While it has to be

BEGIN LIBRARY

PARAMETER LIBRARY_NAME = lwip141

PARAMETER LIBRARY_VER = 1.7

PARAMETER PROC_INSTANCE = ps7_cortexa9_0

PARAMETER api_mode = RAW_API

PARAMETER phy_link_speed = CONFIG_LINKSPEED1000

END

 

Same like

BEGIN LIBRARY

PARAMETER LIBRARY_NAME = lwip141

PARAMETER LIBRARY_VER = 1.7

PARAMETER PROC_INSTANCE = ps7_cortexa9_0

PARAMETER phy_link_speed = CONFIG_LINKSPEED_AUTODETEC (missing T)

END

 

At the end it results in wrong parameters in the generated lwipopts.h file, eg:

#define CONFIG_LINKSPEED_AUTODETEC 1

 

Found solution is easy. After filling and closing the form of the “Board Support Package Settings” open the tab 'source' of the xxx_bsp Board support Package window. At the end of the text in the LWIP section add the missing figure(s) at the end of the line.

 

BEGIN LIBRARY

PARAMETER LIBRARY_NAME = lwip141

PARAMETER LIBRARY_VER = 1.7

 ....

PARAMETER phy_link_speed = CONFIG_LINKSPEED1000

or

PARAMETER phy_link_speed = CONFIG_LINKSPEED_AUTODETECT

 

Best regards

Henk

 

0 Kudos
0 Replies