Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
alan.gjuarez
Posts: 10
Registered: ‎01-24-2012
0

XHwIcap_CfgInitialize HWIcap Initialization failed

Hi, 

 

I am trying to use the HWIcap but it fails when I initialize it. Here is part of the code:

 

#include "xparameters.h"
#include <xil_io.h>
#include <xstatus.h>
#include <stdlib.h>
#include "xhwicap_i.h"
#include "xhwicap.h"

static XHwIcap  HwIcap;

int main(void)
{
    int Status;
    XHwIcap_Config *ConfigPtr;

    ConfigPtr = XHwIcap_LookupConfig(XPAR_XPS_HWICAP_0_DEVICE_ID);
    if (ConfigPtr == NULL){
        print("HWICAP Lookup Config Failure\r\n");
        return XST_FAILURE;
    }
    print("After HWICAP LookupConfig\r\n");
    
    Status = XHwIcap_CfgInitialize(&HwIcap, ConfigPtr, ConfigPtr->BaseAddress);
    if (Status != XST_SUCCESS) {
        print("HWICAP Initialize Failure\r\n");
        return XST_FAILURE;
    }
    print("HWICAP Initialized\r\n");

    print("-- Exiting main() --\r\n");
    return 0;
}

 

I am working with a Digilent Genesys Virtex 5 (xcVLX50T 1136). I have tried reducing the frecuency of HWIcap but still is not working. The version of the HWIcap is v5_00_a on ISE 12.3.

 

Thanks in advance,

 

Alan

 

Newbie
kuziniezov
Posts: 2
Registered: ‎02-19-2012
0

Re: XHwIcap_CfgInitialize HWIcap Initialization failed

Hi, alan!

 

I'm a beginner in using HWICAP and may I ask you a question?

 

I got an error saying that XPAR_XPS_HWICAP_0_DEVICE_ID undeclared.

 

May I ask that have you ever met this problem and how did you solve it ?

 

Thank you very much!

 

 

Visitor
luke.skywalker
Posts: 13
Registered: ‎02-04-2012
0

Re: XHwIcap_CfgInitialize HWIcap Initialization failed

Alan,

 

have you checked if the hwicap device address is setup correctly? There is a button in EDK to check your design. Have you tried this already? You may post your mhs file for further investigations.

 

Kuziniezov,

 

it sounds like your Device_ID was not generated to your xparameters.h. Please try to export your design to the sdk from inside the EDK-IDE. You may also recompile your drivers, sometimes it does the trick for me.

 

Best regards,

 

Luke