2 ms·
On your second question about real-time support, I think the answer is (probably) yes although it depends a bit on precisely what you mean by "real time". I'm
by rwmj 8y ago
On your second question about real-time support, I think the answer is (probably) yes although it depends a bit on precisely what you mean by "real time". I'm assuming you mean as a hard real time microcontroller.
First off there is an Intel SMM-like layer (M mode) running under the operating system. Unlike Intel it's all open source. So if you find that something in M mode is taking too long and disturbing your real time guarantees, you at least have a hope of fixing it.
Obviously Linux is no use for hard real time, but in the HiFive Unleashed board there is a separate RV32 core on the side which actually does nothing except spinning in M mode. It literally runs this loop:
https://github.com/riscv/riscv-pk/blob/600ff370c65ba99d2103a050a1847671cc0bd9c9/bbl/bbl.c#L51 https://github.com/riscv/riscv-pk/blob/600ff370c65ba99d2103a...
You could have this spare core do anything you want while running Linux on the application cores. I believe it has full access to RAM and GPIO pins.
Secondly there is a 96Boards compatible expansion header with some but not very many GPIO pins, see section 8.2 here:
https://static.dev.sifive.com/HiFive-Unleashed-Getting-Started-Guide-v1p1.pdf https://static.dev.sifive.com/HiFive-Unleashed-Getting-Start...
Thirdly the clock currently runs at a constant speed (but settable), so there's no power management, both a good and a bad thing, but probably good for real-time.
- voxadam 8y ago> Obviously Linux is no use for hard real time While it's true that the mainline kernel is not currently capable of delivering hard real-time performance the PREEMPT_RT developers keep chipping away at the remaining issues. LinuxCNC users have been achieving hard real-time performance on their controls through the use of the PREEMPT_RT patches for some time now.