currently using FreedomStudio to conduct an evaluation of risc-v architecture & tools, I found the runner riscv64-unknown-elf-run delivered along with the binutils, but found no mean to launch it from within Eclipse
did I miss something ?
it runs fine from the command line, though. which simulator is it ? spike-based ?
identically, there is a riscv64-unknown-elf-gdb supporting ‘target sim’, but I can’t use this within the IDE. Any clue ?
I’m not an Eclipse user, so I can’t help you much with that. it does appear that our FreedomStudio release is set up to talk to hardware, and doesn’t have any preconfigured simulator support. The support HiFive1 and Artix-7 boards are not very expensive if you want to try one.
The -run program is the gdb simulator. part of the gdb source tree. It is a simple ISA simulator with some semihosting support so that things like printf can work. It is useful for compiler testing. It is probably not very useful for serious embedded development as it doesn’t try to implement system registers and instructions. The gdb sim is just for running user mode programs. You probably want to use qemu, as that is the best supported simulator, and the simulator with the most features.