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.