cynq icon indicating copy to clipboard operation
cynq copied to clipboard

Bug when running examples

Open Brandonyfyang opened this issue 2 months ago • 1 comments

The following problem occurred when running the relevant example project of cynq: ubuntu@kria:~/cynq$ sudo ./builddir/examples/matrix-multiplication-kria [sudo] password for ubuntu: ----- Initialising platform ----- terminate called after throwing an instance of 'std::runtime_error' what(): Could not open device with index '0' Aborted When I used the command xbutil examine to check the XRT device, the output result was as follows: System Configuration OS Name : Linux Release : 5.15.0-1060-xilinx-zynqmp Version : #64-Ubuntu SMP Fri Oct 24 02:34:51 UTC 2025 Machine : aarch64 CPU Cores : 4 Memory : 3910 MB Distribution : Ubuntu 22.04.5 LTS GLIBC : 2.35 Model : ZynqMP KV260 revB XRT Version : 2.13.0 Branch : Hash : Hash Date : 2022-09-15 17:01:20 ZOCL : 2.13.0, Devices present 0 devices found BDF : Shell Platform UUID Device ID Device Ready*

  • Devices that are not ready will have reduced functionality when using XRT tools How should I solve problems like this?

Brandonyfyang avatar Nov 26 '25 16:11 Brandonyfyang

Hi @Brandonyfyang

It seems there is something to do with your platform:

System Configuration OS Name : Linux Release : 5.15.0-1060-xilinx-zynqmp Version : #64-Ubuntu SMP Fri Oct 24 02:34:51 UTC 2025 Machine : aarch64 CPU Cores : 4 Memory : 3910 MB Distribution : Ubuntu 22.04.5 LTS GLIBC : 2.35 Model : ZynqMP KV260 revB XRT Version : 2.13.0 Branch : Hash : Hash Date : 2022-09-15 17:01:20 ZOCL : 2.13.0, Devices present 0 devices found BDF : Shell Platform UUID Device ID Device Ready*

lleon95 avatar Nov 26 '25 21:11 lleon95

Devices present BDF : Shell Platform UUID Device ID Device Ready*
[0000:00:00.0] : KV260 0x0 user(inst=0) Yes
Thanks! I have solved the bug of platform, but when I run : sudo ./builddir/examples/matrix-multiplication-kria,(pynq-venv) ubuntu@kria:~/cynq$ sudo ./builddir/examples/matrix-multiplication-kria [sudo] password for ubuntu: ----- Initialising platform ----- My KV260 board card has crashed. It needs to be restarted before it can be used normally, I want to figure out what is the problem?

Brandonyfyang avatar Dec 03 '25 14:12 Brandonyfyang