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# 54352

14.4 - XPS -SDK - IP created in CIP (Create or Import Peripheral) wizard in XPS is failing in SDK libgen as xio.h and xbasic_types.h cannot be found

Description

A problem occurs if a simple IP is created with an AXI interface with register access and soft reset, and if the "create a sample driver" box is ticked in the CIP wizard. 

If this project is exported to SDK with the driver included in the repository, or using the example code provided in the driver, the SDK will fail in libgen noting that the xio.h or the xbasic_types.h cannot be found, or that the <IP_NAME>_USER_NUM_REG cannot be defined.

How can I fix this?

解决方案

This is a known issue. 

To fix the issue, open the driver source files created in the CIP wizard seen below;


<IP_NAME>.h

Change the following:

#include "xio.h"
#include "xbasic_types.h"

to:

#include "xil_io.h"
#include "xil_types.h"


<IP_NAME>selftest.c

Change the following:

#include "xio.h"

to:

#include "xil_io.h"
#include "xil_types.h"

and add:

#define <IP_NAME>_USER_TEST_NAME <IP_NAME>_AXI_LITE_USER_NUM_REG


Note: When adding custom drivers to SDK, the hierarchy will need to look like:
 
<Project Directory>\drivers\MyProcessorIPLib\drivers\<IP_NAME>_v1_00_a
 
Then, in Xilinx Tools -> Repositories, add and point to the drivers folder (highlighted).
AR# 54352
创建日期 02/20/2013
Last Updated 10/14/2014
状态 Active
Type 综合文章
器件
  • Zynq-7000
Tools
  • EDK - 14.1
  • EDK - 14.2
  • EDK - 14.3
  • EDK - 14.4