ultraembedded / riscv

RISC-V CPU Core (RV32IM)
BSD 3-Clause "New" or "Revised" License
1.23k stars 227 forks source link

The Problem of the method to generate basic.elf #13

Open yuchengwang1121 opened 1 year ago

yuchengwang1121 commented 1 year ago

Hello, I am trying to run helloworld.c on your RISC-V Core. Howevr It can't execute helloworld.c normally on it. First ,I have already turn the C code into elf file and put it in the folder riscv/isa_sim/images. Then, I call "make" in the folder riscv/isa_sim. Finally, I type "./riscv-sim -f images/hello.elf" in the folder riscv/isa_sim. Unfortunately, It fail due to the bad memory access.

So I am considering how is your basic.elf been generate ? And what is the original basic.c ?

Thank you ~!!