0

Hello.

I’d like to ask how to use semihosting in LLVM for RISC-V MCU toolchain.

LLVM for RISC-V MCU toolchain has semihosting library and it should be easier than struggling with UART.
Deleted -lnosys and added –specs=semihost.specs and successfully linked stdio library (#include <stdio.h> and called ‘puts’).
But I can’t see any outputs in Console, Debugger Console views in e² studio.

Do I need to do something else, such as heap allocation?

TIA.

Open Source Tools Support answered