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: 
Observer snowolfyou
Observer
3,137 Views
Registered: ‎05-20-2009

Why doesn't XHwIcap_StartReadBack(hwicap) work?

hi,

Does anyone know of some sample code that shows how to use an ICAP controlled by a Microblaze to read back of a partial module's bitstream?

  I have been pulling my hair out trying to make the XHwIcap_StartReadBack(hwicap) function work properly. XHwIcap_GetControlReg(hwicap) tell me that the CR value is 0, not 2.

But at the same time, the XHwIcap_StartConfig(hwicap) function work properly, XHwIcap_GetControlReg(hwicap) tell the CR set right.

This means that the XHwIcap_StartReadBack(hwicap) function does't work. Could you tell me how can make it work properly?

 

 

best regards,

snowolfyou

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
3,122 Views
Registered: ‎08-15-2011

Re: Why doesn't XHwIcap_StartReadBack(hwicap) work?

There are some examples located in the install directory e.g.

 

C:\Xilinx\13.x\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\hwicap_v6_00_a\examples

 

xhwicap_read_frame_polled_example.c shows an example of reading configuration information

0 Kudos
Observer snowolfyou
Observer
3,101 Views
Registered: ‎05-20-2009

Re: Why doesn't XHwIcap_StartReadBack(hwicap) work?

I follow these example. but the value of reading back are "0".

my program is :

 Status = XSysAce_Initialize(&SysAce, XPAR_SYSACE_0_DEVICE_ID);

 if (Status != XST_SUCCESS) {   return XST_FAILURE;  }

 print("System ACE Controller Initialized\r\n");  

  ConfigPtr = XHwIcap_LookupConfig(XPAR_XPS_HWICAP_0_DEVICE_ID);

 if (ConfigPtr == NULL) {   return XST_FAILURE;  }  print("After HWICAP LookupConfig\r\n");  

 Status = XHwIcap_CfgInitialize(&HwIcap, ConfigPtr,     ConfigPtr->BaseAddress);  if (Status != XST_SUCCESS) {   return XST_FAILURE;  }  print("HWICAP Initialized\r\n");

 Status = XHwIcap_DeviceReadFrame(&HwIcap,        HWICAP_EXAMPLE_TOP,        HWICAP_EXAMPLE_BLOCK,        HWICAP_EXAMPLE_HCLK,        HWICAP_EXAMPLE_MAJOR,        HWICAP_EXAMPLE_MINOR,        (u32 *) &FrameData[0]);

     for (i=0;i<83;i++){          xil_printf("word %d= %0x\r\n",i,FrameData[i]);      }

 

The value got are 0.

I dont the reason. Who will tell me ?

0 Kudos
1,195 Views
Registered: ‎06-01-2016

Re: Why doesn't XHwIcap_StartReadBack(hwicap) work?

Hello.Did your problem has been solved ?

0 Kudos