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