-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run simulator for Hello World demo due to missing files and makefile error #90
Comments
I'm not exactly sure how you installed Verilator, but I assume something went wrong in the process. I recommend that you follow the "Git quick install" instructions here: https://verilator.org/guide/latest/install.html#git-quick-install |
For the software building issue, could you make sure you have diff --git a/sw/c/gcc_toolchain.cmake b/sw/c/gcc_toolchain.cmake
index d84d1af..00d9e24 100644
--- a/sw/c/gcc_toolchain.cmake
+++ b/sw/c/gcc_toolchain.cmake
@@ -1,6 +1,7 @@
set(LINKER_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/../common/link.ld")
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_C_COMPILER riscv32-unknown-elf-gcc)
+set(CMAKE_OBJCOPY riscv32-unknown-elf-objcopy)
set(CMAKE_C_FLAGS_INIT
"-march=rv32imc -mabi=ilp32 -mcmodel=medany -Wall -fvisibility=hidden -ffreestanding")
set(CMAKE_ASM_FLAGS_INIT "-march=rv32imc") |
How should I run this patch? Just run it in the terminal right? |
Marno is suggesting you apply the patch to |
I've opened up a PR for this: #107 |
Closing this as it is a duplicate of: #78 |
hi everyone. As I was following the instructions to run the simulator, when I tried to run the command
./build/lowrisc_ibex_demo_system_0/simverilator/Vibex_demo_system \ --meminit=ram,./sw/c/build/demo/hello_world/demo
, it produced the following errors, and I don't know how to fix the issues. My verilator version is 4.210.I am not sure if this is related, but when I tried to run the
make
command in theBuilding Software
section for C stack, it produced these errors...The text was updated successfully, but these errors were encountered: