Nios® V Processor Software Developer Handbook

ID 743810
Date 9/26/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.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-}”