[XRT] ERROR: xclRegRW: can't map CU: - when trying to access to read/write register inside the fpga

0

Hi,

Using xrt application and trying to access to read/write register and got this error: [XRT] ERROR: xclRegRW: can't map CU:

My xrt.ini contains this content: [Debug] profile=true [Runtime] rw_shared=true runtime_log=console

and inside the my code I used those commands:

/ Read clock count from clk_cnt* registers and unite into 64-bit value // There is issue with [XRT] error : xclRegRW: can't map CU: clock count is 0

xclOpenContext(handle, xclbinId, cuidx, false); xclRegRead(handle, cuidx, clk_cnt_lsb_offset, &clk_cnt_lsb); xclCloseContext(handle, xclbinId, cuidx); xclOpenContext(handle, xclbinId, cuidx, false); xclRegRead(handle, cuidx, clk_cnt_msb_offset, &clk_cnt_msb); xclCloseContext(handle, xclbinId, cuidx); long int clock_count = ((long int)clk_cnt_msb << 32) | (long int)clk_cnt_lsb; std::cout << std::endl << "Clock count is: " << clock_count << std::endl;

  • Hi, you might want to add the FPGA Development tag to this question.

已提問 2 年前檢視次數 177 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南