Closed zhanghb97 closed 8 months ago
AFAIK only the second core (ID=1) supports rvv, and you ran it on the first core (ID=0).
You either need to work with the src/rt-smart/userapps/ (see the k230_docs example), or configure linux to run on the second core, see this reddit discussion.
close the issue. You can reopen it if any further question.
Help
Hi,
I am attempting to run RVV code on the CanMV-K230-V1.0 board and have encountered an illegal instruction error.
I am using llvm/clang and risc-v gnu toolchain to generate the executable. The executable runs successfully on the QEMU emulator, but when I attempt to run the same one on the CanMV-K230-V1.0 board, I'm facing an "illegal instruction" error. The error message is as follows:
The source code is:
I also provide the assembly code here:
Given that the
vsetvli
is seemingly the only RVV instruction in my code, I suspect it leads to the illegal instruction issue. What are the possible causes of this problem? Is there a good way to locate specific illegal commands?Thanks in advance!