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
Voyager
Voyager
5,739 Views
Registered: ‎02-10-2012

Building SDK Standalone BSP with OS as part of Application

Hey All,

 

My problem : I am trying to build a Networking application with the FreeRTOS Source code included as part of the Application. Since I need the socket API's of lwip for the my application , the BSP throws an error as it needs xilkernel or FreeRTOS OS and it is not able to recognise that the FreeRTOS is part of my application!

 

Source of my Problem : TCL code of the lwIP BSP has a dependency on the FreeRTOS BSP, and since I am working with a project that builds FreeRTOS as part of the Application the TCL code doesn't know about it and flags a dependency error.

 

Now some of you might suggest why dont I just build the application using the Xilinx FreeRTOS BSP. I already did that and found out that the FreeRTOS bsp is horrendously outdated! The FreeRTOS BSP I could find is based on FreeRTOS V7.0.2 !! This was released in September 20 2011! And there are so many changes and improvements till the latest version which is V8.0.1 released 2nd May 2014!

 

I did look hard but could not find the BSP with FreeRTOS V8.0.1! So the only way to use the V8.0.1 was to directly download it from the freeRTOS Website and build it as part of my application. Integrating the FreeRTOS into the application was easy thanks to the Zynq demo project provided alone with the sources! Just when I thought every thing is going to be okay from here I hit this road bump! I searched on the freeRTOS website and found the exact same problem here

 

Bottomline :Can any one give me the slightest clue on how to build the lwip socket mode stanalone BSP with FreeRTOS included in the application ? Or point me to where I can get the FreeRTOS BSP for FreeRTOS v8.0.1 ? May be some how I missed it.. 

 

Hope I have included all the information pertaining to the problem

 

Thank you so much.

 

Regards

Arvind

0 Kudos
7 Replies
Scholar sampatd
Scholar
5,695 Views
Registered: ‎09-05-2011

Re: Building SDK Standalone BSP with OS as part of Application

Are you using 2014.2 version of SDK?

 

If so, use the FreeRTOS BSP that I have attached (Xilinx_Zynq).

 

There is an issue with SDK 2014.2 where in the LwIP in socket API does not get compiled.

 

Please apply the patch given in the AR below:

 http://www.xilinx.com/support/answers/61178.html

0 Kudos
Voyager
Voyager
5,691 Views
Registered: ‎02-10-2012

Re: Building SDK Standalone BSP with OS as part of Application

Hello Sampatd

 

Thank you for the reply. I was able to successfully build the FreeRTOS BSP and compile it with the Socket API of Lwip. But as I mentioned in my original post , the Xilinx FreeRTOS BSP is extremely outdated. It is based on FreeRTOS version 7.0.2. I was looking for a way to used their latest version which is 8.0.1.

 

The reason is there has been a lot of changes to the FreeRTOS since 7.0.2 . Using the FreeRTOS BSP I dont have access to a lot of configuration parameters for the FreeRTOSConfig.h file as the only way to configure the settings in the FreeRTOSConfig.h file is in the BSP settings.

 

The other (more important )reason is the interrupt handling . The procedure on the official FreeRTOS site ( http://www.freertos.org/Using-FreeRTOS-on-Cortex-A-Embedded-Processors.html )  applies to their latest version and none of these things can be done in the 7.0.2 version which is present in the Xilinx FreeRTOS BSP. Please correct me if I am wrong. 

 

That is why I was looking for a FreeRTOS BSP based on the FreeRTOS 8.0.1 version or a way to compile a standalone BSP with Socket API's and FreeRTOS as part of the Application. That way I can use the latest version of FreeRTOS

 

Regards

Arvind

0 Kudos
4,370 Views
Registered: ‎06-19-2015

Re: Building SDK Standalone BSP with OS as part of Application

Hello Arvind,

 

DId you ever resolve this problem? I am trying to add lwip and I've run into the same problem that you have posted.

 

-Mark

0 Kudos
Voyager
Voyager
4,320 Views
Registered: ‎02-10-2012

Re: Building SDK Standalone BSP with OS as part of Application

Hey ,

 

I believe the latest FreeRTOS versions have lwip as part of their source code.  So you don't need xilinx lwip BSP's any more. You just need the Standalone BSPs for other xilinx functions.


The best way to set up the FreeRTOS is to download the demo project and follow the steps TO THE LETTER. After the demo application works you can edit it to suit your application. 

 

Hope this helps!

 

Cheers

Arvind

 

0 Kudos
Adventurer
Adventurer
3,466 Views
Registered: ‎09-19-2016

Re: Building SDK Standalone BSP with OS as part of Application

Hi Arvind! Can you tell me which FreeRTOS demo project you meant exactly? Thanks!
0 Kudos
Voyager
Voyager
3,451 Views
Registered: ‎02-10-2012

Re: Building SDK Standalone BSP with OS as part of Application

Hey

 

You can have a look here : http://www.freertos.org/a00102.html

The demo projects are part of the source code. You just have to import them into your work space. Make sure you do not copy the sources and only reference them. These instructions are very explicit in the demo project instructions.

 

Hope that helps

 

All the best!

Explorer
Explorer
2,721 Views
Registered: ‎03-09-2017

Re: Building SDK Standalone BSP with OS as part of Application

What is the difference between building sdk using Cortex-A9 RTOS port to run FreeRTOS on a ZC702 evaluation board using the Xilinx SDK and GCC and creating a FreeRTOS BSP ? I want to do udp communication for multiple ports and I want to make use of socket then which one should be chosen? sdk using cortex A9 RTOS port to run Free RTOS or creating a Free RTOS BSP? and Iam using Xilinx sdk 2016.4

0 Kudos