Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

5.2.4.5. Configuring RISC-V Compiler

You can specify the RISC-V compiler using the hal.toolchain.prefix. By default, the hal.toolchain.prefix is configured as riscv32-unknown-elf- which is provided by the Ashling* RiscFree* IDE for Intel FPGAs.

When creating a new BSP:
niosv-bsp --create --qsys=<Platform Designer system> --type=hal
--cmd=”set setting hal.toolchain.prefix {riscv32-unknown-elf-}”
When updating an existing BSP:
niosv-bsp --update --cmd=”set setting hal.toolchain.prefix {riscv32-unknown-elf-}”