longan-nano icon indicating copy to clipboard operation
longan-nano copied to clipboard

Is it possible to run the binary in QEMU?

Open Valentin4869 opened this issue 3 years ago • 3 comments

qemu-system-riscv32 --machine virt doesn't seem to be enough to run the example blinky.

Valentin4869 avatar Sep 19 '22 12:09 Valentin4869

Sure, virt is a completely different platform, I'm quite sure it doesn't contain even a single peripheral present in GD32VF103. However, you can run programs which don't depend on hardware-specific libraries.

Disasm avatar Sep 19 '22 14:09 Disasm

Sure, virt is a completely different platform, I'm quite sure it doesn't contain even a single peripheral present in GD32VF103. However, you can run programs which don't depend on hardware-specific libraries.

So there is no way to get the state of the LED to make sure it's blinking in the simulation?

Valentin4869 avatar Sep 19 '22 15:09 Valentin4869

I'm afraid, no. You can take a look at renode, it supports a lot of microcontrollers. It doesn't support GD32VF103, but it supports another RISC-V chip: FE310 and HiFive1 board, which is also supported in Rust.

Disasm avatar Sep 21 '22 16:09 Disasm