cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sam025023
Explorer
Explorer
8,055 Views
Registered: ‎11-11-2013

freeRTOS BSP project XAPP1026 errors with SDK2015.1 and 2015.2

 

HI there,

 

I tried to use SDK2015.1 to generate the freeRTOS bsp with the repository from xilinx. 

https://secure.xilinx.com/webreg/clickthrough.do?cid=107743&license=RefDesLicense&filename=xapp1026.zip&languageID=1

 

But if the BSP is generated by SDK2014.4 or older versions, it works well.

Hereby the console msgs FYI as well.

Any idea? 

 

thx

Sam

error_SDK.PNG
0 Kudos
9 Replies
muzaffer
Teacher
Teacher
7,996 Views
Registered: ‎03-31-2012

it looks like most of the initial errors can be cleared up with a include of a file like stdint.h or types.h or similar.

- 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
sam025023
Explorer
Explorer
7,876 Views
Registered: ‎11-11-2013

 

Thanks for your reply.

But these are the errors in BSP project, which is generated by SDK automatically. If adding these include files in the BSP project manually, these revisions may be deleted when the BSP project is regenerated in some situations.

 

I checked the xil_types.h file in the standlone BSP project, which is generated by SDK as well.

 

There are type definitions, like:

#if !defined(LONG) || !defined(ULONG)
typedef long LONG;
typedef unsigned long ULONG;
#endif

 

But the xil_types.h file in freeRTOS BSP doesn't include these type definitions. I tried to add these definitions manually into xil_types.h file, but SDK erases the code automatically after compilation. 

 

 

thx

Sam

0 Kudos
sam025023
Explorer
Explorer
7,830 Views
Registered: ‎11-11-2013

 

Hello??

0 Kudos
sam025023
Explorer
Explorer
7,759 Views
Registered: ‎11-11-2013


It seams a SDK bug..
Can anyone help on this?
0 Kudos
sam025023
Explorer
Explorer
7,528 Views
Registered: ‎11-11-2013

Still the same issue for vivado 2015.2..

Sad!

0 Kudos
msikaria
Visitor
Visitor
7,440 Views
Registered: ‎08-13-2014

Replace  the Xil_types.h to the xil_types.h folder that you are using in the SDK  from the standlone 5_1 that can be found at Xilinx/SDK/2015.2/standalone_version. Basically, the xil_types for 2015.2 have those typedefs defined. 

 

Hope that solves the problem.

0 Kudos
sam025023
Explorer
Explorer
7,119 Views
Registered: ‎11-11-2013

 

Thank you very much for your post. 

 

I checked the file of xil_types.h in the folder of  C:\Xilinx\SDK\2015.2\data\embeddedsw\lib\bsp\standalone_v5_1. It does include the data types which show in the previous error msg.

 

Then I deleted all the subfolders of standalone_v*_* except the standalone_v5_1 which contains the right xil_types.h file. Created a new freeRTOS BSP project again. The same errors still exist. 

 

It turns out when freeRTOS bsp project was created, SDK2015.2 automatically copies a xil_types.h file to the bsp project. But this xil_types.h is NOT from C:\Xilinx\SDK\2015.2\data\embeddedsw\lib\bsp\standalone_v5_1

 

 

0 Kudos
markoblazic
Newbie
Newbie
6,724 Views
Registered: ‎11-27-2015

Hello 

 

I have exact the same issue. Did you manage to find a solution?

 

I spent days on this and I can not say where SDK get this old xil_types.h. I put in all standalone_vX_X maps  contents of standalone_v5_1. ( C:\Xilinx\SDK\2015.2\data\embeddedsw\lib\bsp )

But still when SDK generates BSP it get an old copy of standalone_v4_1. But I can not figure out where it gets it. 

I would realy appreciate if someone has an answer?

 

I am using Vivado & SDK 2015.2. 

 

Marko

0 Kudos
rodri12001
Newbie
Newbie
5,607 Views
Registered: ‎01-21-2016

Hello,

 

I have had the same problem using BSP on Vivado 2015.3 and I have managed to solve the problem. As you have said before, the problem is that the type LONG is missing in some xil_types.h files under the folders standalone_vX.

 

However, modifying those files has no effect if you are using a repo. In that case, you should modify the content of the xil_types.h files included in the repo. For example, for the project used by sam025023 (https://secure.xilinx.com/webreg/clickthrough.do?cid=107743&license=RefDesLicense&filename=xapp1026.zip&languageID=1) you should modify all the xil_types.h files included.

 

I hope you can solve the problem by doing this.

 

Kind regards,

 

Mikel

0 Kudos