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: 
Highlighted
Participant mrpackethead
Participant
336 Views

Cannot find --llwip4 SDK2018.2

I'm creating a new application project;     

I select freertos10_xilinx as the OS Plaform, and then FreeRTOS IwIP Echo Server.   

when it trys to compile it fails.    See errors.

 

No modifications where made to anything.  

Capture.JPG
0 Kudos
17 Replies
Explorer
Explorer
319 Views

Re: Cannot find --llwip4 SDK2018.2

Have you included the corresponding libraries in SDK?

 

In SDK, right-click on your bsp sup-project, click Board Support Package Settings, then tick the library:

 

Untitled picture.png

0 Kudos
Participant mrpackethead
Participant
308 Views

Re: Cannot find --llwip4 SDK2018.2

Hi, thanks yes, i have 

 

Capture.JPG

0 Kudos
Participant mrpackethead
Participant
307 Views

Re: Cannot find --llwip4 SDK2018.2

If i create a standalone project,  ( not freertos ) it will compile, with Lwip.

0 Kudos
Explorer
Explorer
289 Views

Re: Cannot find --llwip4 SDK2018.2

Interesting, for FreeRTOS not being much more than a bunch of files to add.

Hard coded path somewhere?

0 Kudos
Xilinx Employee
Xilinx Employee
284 Views

Re: Cannot find --llwip4 SDK2018.2

Hi,

 

Please switch the tab to Console and paste the error message that you are getting . If possible provide the HDF file also ?

Regards,
Raju
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.

0 Kudos
Participant mrpackethead
Participant
268 Views

Re: Cannot find --llwip4 SDK2018.2

here are the builds for both the bsp and the project.  and system.hdf is attached as  a zip file. 
the bsp wont' compile, whjich appears to be related to the file   xemacliteif.c   
its trying to include lwip/timers.h   which it cant' find   and also it can't include stdio.h  and string.h

Any help would be greatfully received.

 

Capture.JPG


20:18:41 **** Build of project freertos_lwip_bsp ****
make -k all
"Running Make include in microblaze_0/libsrc/bram_v4_2/src"
make -C microblaze_0/libsrc/bram_v4_2/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/cpu_v2_7/src"
make -C microblaze_0/libsrc/cpu_v2_7/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/emaclite_v4_3/src"
make -C microblaze_0/libsrc/emaclite_v4_3/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/freertos10_xilinx_v1_1/src"
make -C microblaze_0/libsrc/freertos10_xilinx_v1_1/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"include"
"Running Make include in microblaze_0/libsrc/gpio_v4_3/src"
make -C microblaze_0/libsrc/gpio_v4_3/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/intc_v3_7/src"
make -C microblaze_0/libsrc/intc_v3_7/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/lwip202_v1_1/src"
make -C microblaze_0/libsrc/lwip202_v1_1/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/tmrctr_v4_4/src"
make -C microblaze_0/libsrc/tmrctr_v4_4/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make include in microblaze_0/libsrc/uartlite_v3_2/src"
make -C microblaze_0/libsrc/uartlite_v3_2/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Running Make libs in microblaze_0/libsrc/bram_v4_2/src"
make -C microblaze_0/libsrc/bram_v4_2/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling bram"
mb-ar: creating ../../../lib/libxil.a
"Running Make libs in microblaze_0/libsrc/cpu_v2_7/src"
make -C microblaze_0/libsrc/cpu_v2_7/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling cpu"
"Running Make libs in microblaze_0/libsrc/emaclite_v4_3/src"
make -C microblaze_0/libsrc/emaclite_v4_3/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling emaclite"
"Running Make libs in microblaze_0/libsrc/freertos10_xilinx_v1_1/src"
make -C microblaze_0/libsrc/freertos10_xilinx_v1_1/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling standalone";
microblaze_sleep.c: In function 'usleep_MB':
microblaze_sleep.c:106:29: warning: unused parameter 'useconds' [-Wunused-parameter]
int usleep_MB(unsigned long useconds)
^~~~~~~~
microblaze_sleep.c: In function 'sleep_MB':
microblaze_sleep.c:128:32: warning: unused parameter 'seconds' [-Wunused-parameter]
unsigned sleep_MB(unsigned int seconds)
^~~~~~~
microblaze_sleep.c: In function 'MB_Sleep':
microblaze_sleep.c:153:19: warning: unused parameter 'MilliSeconds' [-Wunused-parameter]
void MB_Sleep(u32 MilliSeconds)
^~~~~~~~~~~~
"Compiling FreeRTOS"
"Running Make libs in microblaze_0/libsrc/gpio_v4_3/src"
make -C microblaze_0/libsrc/gpio_v4_3/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling gpio"
"Running Make libs in microblaze_0/libsrc/intc_v3_7/src"
make -C microblaze_0/libsrc/intc_v3_7/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling intc"
"Running Make libs in microblaze_0/libsrc/lwip202_v1_1/src"
make -C microblaze_0/libsrc/lwip202_v1_1/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling lwip src and adapter files"
contrib/ports/xilinx/netif/xadapter.c: In function 'eth_link_detect':
contrib/ports/xilinx/netif/xadapter.c:366:8: warning: unused variable 'link_speed' [-Wunused-variable]
u32_t link_speed, phy_link_status;
^~~~~~~~~~
contrib/ports/xilinx/netif/xemacliteif.c:65:10: fatal error: lwip/timers.h: No such file or directory
#include "lwip/timers.h"
^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [xemacliteif.o] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [microblaze_0/libsrc/lwip202_v1_1/src/make.libs] Error 2
"Running Make libs in microblaze_0/libsrc/tmrctr_v4_4/src"
make -C microblaze_0/libsrc/tmrctr_v4_4/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling tmrctr"
"Running Make libs in microblaze_0/libsrc/uartlite_v3_2/src"
make -C microblaze_0/libsrc/uartlite_v3_2/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v10.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-ffunction-sections -fdata-sections -Wall -Wextra"
"Compiling uartlite"
make: Target `all' not remade because of errors.

20:19:02 Build Finished (took 20s.249ms)






20:19:02 **** Build of configuration Debug for project freertos_lwip ****
make all
'Building file: ../src/echo.c'
'Invoking: MicroBlaze gcc compiler'
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/echo.o" -I../../freertos_lwip_bsp/microblaze_0/include -mlittle-endian -mcpu=v10.0 -mxl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/echo.d" -MT"src/echo.o" -o "src/echo.o" "../src/echo.c"
'Finished building: ../src/echo.c'
' '
'Building file: ../src/iic_phyreset.c'
'Invoking: MicroBlaze gcc compiler'
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/iic_phyreset.o" -I../../freertos_lwip_bsp/microblaze_0/include -mlittle-endian -mcpu=v10.0 -mxl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/iic_phyreset.d" -MT"src/iic_phyreset.o" -o "src/iic_phyreset.o" "../src/iic_phyreset.c"
'Finished building: ../src/iic_phyreset.c'
' '
'Building file: ../src/main.c'
'Invoking: MicroBlaze gcc compiler'
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/main.o" -I../../freertos_lwip_bsp/microblaze_0/include -mlittle-endian -mcpu=v10.0 -mxl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
'Finished building: ../src/main.c'
' '
'Building target: freertos_lwip.elf'
'Invoking: MicroBlaze gcc linker'
mb-gcc -Wl,-T -Wl,../src/lscript.ld -L../../freertos_lwip_bsp/microblaze_0/lib -mlittle-endian -mcpu=v10.0 -mxl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "freertos_lwip.elf" ./src/echo.o ./src/iic_phyreset.o ./src/main.o -Wl,--start-group,-lxil,-lfreertos,-lgcc,-lc,--end-group -Wl,--start-group,-lxil,-llwip4,-lgcc,-lc,--end-group
c:/xilinx/sdk/2018.2/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/7.2.0/../../../../microblaze-xilinx-elf/bin/ld.exe: cannot find -llwip4
collect2.exe: error: ld returned 1 exit status
make: *** [freertos_lwip.elf] Error 1

20:19:03 Build Finished (took 1s.289ms)

 

 

0 Kudos
Participant mrpackethead
Participant
236 Views

Re: Cannot find --llwip4 SDK2018.2

Nobody knows how to fix this?

0 Kudos
Explorer
Explorer
225 Views

Re: Cannot find --llwip4 SDK2018.2

Hi,

I can't say I've used 2018.2 but I've used lwip and FreeRTOS on 2017.4. Can you share your system.mss file as I would hazard a guess it might be an lwip configuration issue somewhere. Failing that it could be a problem with the TCL for generating LWIP but it might take me a minute to track down where that file lives

The Mss file might highlight something so if you can share that first I'll take a look

Regards

Simon

0 Kudos
Explorer
Explorer
220 Views

Re: Cannot find --llwip4 SDK2018.2

Also is there a timers.h file showing in the following folder:

bsp_name/CPUName/libsrc/lwip202_v1_1/src/lwip-2.0.2/src/include/lwip

First two folder names will reflect your design. Some of the lwip names I've had to infer based on my older installation.

If the file is not there then check the following folder (assuming default installation path for Xilinx (if not change folders accordingly):

C:\Xilinx\SDK\2018.2\data\embeddedsw\ThirdParty\sw_services\lwip202_v1_1\src\lwip-2.0.2\src\include\lwip

If the file is missing from there then you have a bigger problem (which may require a re-installation or there is a bug in 2018.2 that has omitted the file). This is the source folder that is used to copy driver files from when it creates the BSP

Let me know how you get on with that and I'll see if I can suggest anything else

Regards

Simon

Participant mrpackethead
Participant
232 Views

Re: Cannot find --llwip4 SDK2018.2

Hi Simon, if you see above; there is an attachment system.zip. I had to zip it so I could attach it as it woud't let me post the mss file directly.
0 Kudos
Participant mrpackethead
Participant
232 Views

Re: Cannot find --llwip4 SDK2018.2

i dont' have the timers.h in that folder.
That is odd.
0 Kudos
Participant mrpackethead
Participant
222 Views

Re: Cannot find --llwip4 SDK2018.2

I just checked on the instlalation of 2018.2 on my laptop, which has had no work done.. It too is missing the file.  In the version 2.0.2 lwip files, its missing, but in the 1.41 version it is there. 

 

 

 

 

0 Kudos
Participant mrpackethead
Participant
199 Views

Re: Cannot find --llwip4 SDK2018.2

For what its worth LWip without FreeRTOS appears to use quite a differnet set of files.  

0 Kudos
Explorer
Explorer
152 Views

Re: Cannot find --llwip4 SDK2018.2

Hmm, sounds a bit odd. If the source file is not there in the installation directory, it doesn't sound like you'd have much hope of it ever working. Might be worth opening a support ticket with Xilinx on that one.

Failing that try searching that folder tree (C:\Xilinx\SDK\2018.2\data\embeddedsw) to see if that timers.h file appears anywhere else?

 Just had another thought. I've just downloaded the lwip source zip for 2.0.2 and there is no timers.h file in there either. There is a file called timeouts.h though, which appear to contain almost exactly the same thing as timers.h. Is this included in the installation folder?

If it is, can you change the #include in the xemaclite.c to point to timeouts.h and see if that works? Might be worth a go. It might be a bug in the xemaclite driver and that needs to be updated

Regards

Simon

0 Kudos
Participant mrpackethead
Participant
131 Views

Re: Cannot find --llwip4 SDK2018.2

Thanks for that, it compiled, but it does'nt seem to want to work. 

0 Kudos
Explorer
Explorer
120 Views

Re: Cannot find --llwip4 SDK2018.2

Sounds like you have similar issues to this thread:

https://forums.xilinx.com/t5/Embedded-Development-Tools/Cannot-build-application-with-LwIP-2-0-2-FreeRTOS-10-on-Vivado/m-p/909181/highlight/false#M47467

Pop over to that thread and have a look. Between us we should be able to work out what is going on.

I'll help where I can but I haven't upgraded to 2018.2 yet (still on 2017.4). It almost feels like there is something in the xilinx emaclite port of LWIP that needs to be upgraded to Lwip 2.0.2 but hasn't been properly tested.

I'll see if I can see anything in the lwip changelogs that might throw some light on the matter

Regards

Simon

0 Kudos
Xilinx Employee
Xilinx Employee
54 Views

Re: Cannot find --llwip4 SDK2018.2

This issue is fixed in 2018.3, for a patch on 2018.2 please refer the following AR

https://www.xilinx.com/support/answers/71330.html

Regards,
Raju
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.

0 Kudos