riscv-rust / longan-nano

Board support package for the Longan Nano board
https://www.seeedstudio.com/Sipeed-Longan-Nano-RISC-V-GD32VF103CBT6-Development-Board-p-4205.html
117 stars 29 forks source link

Is it possible to run the binary in QEMU? #32

Open Valentin4869 opened 2 years ago

Valentin4869 commented 2 years ago

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

Disasm commented 2 years ago

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.

Valentin4869 commented 2 years ago

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?

Disasm commented 2 years ago

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.