# RISC-V

**URL:** https://forums.sifive.com/c/archive/riscv/5.md?page=2

[Latest](https://forums.sifive.com/latest.md) · [Categories](https://forums.sifive.com/categories.md)

**Page:** 3

---

## [A RISC-V assembler written in Lisp](https://forums.sifive.com/t/a-risc-v-assembler-written-in-lisp/3468)

<div class="topic-metadata">

**Author:** [@johnsondavies](https://forums.sifive.com/u/johnsondavies)\
**Replies:** 0\
**Last updated:** [March 20, 2020, 12:47pm UTC](https://forums.sifive.com/t/a-risc-v-assembler-written-in-lisp/3468 "2020-03-20T12:47:13Z")

</div>

In case it’s useful, I’ve recently posted a RISC-V assembler written in Lisp on GitHub: Lisp RISC-V assembler It’s designed for use with my Lisp interpreter, uLisp, that runs on RISC-V processors, to allow you to gener…

---

## [Config RISCV with GSL library on Ubuntu](https://forums.sifive.com/t/config-riscv-with-gsl-library-on-ubuntu/3339)

<div class="topic-metadata">

**Author:** [@asiddiqui](https://forums.sifive.com/u/asiddiqui)\
**Replies:** 4\
**Last updated:** [February 18, 2020, 7:43am UTC](https://forums.sifive.com/t/config-riscv-with-gsl-library-on-ubuntu/3339 "2020-02-18T07:43:47Z")

</div>

Hello, I’m trying to compile GSL with RISCv compiler. if i configure GSL for cross comiling with the following command ./configure --host=riscv64-unknown-elf --prefix=$ path to riscv install toolchain/bin then it giv…

---

## [Kexec and kdump tools](https://forums.sifive.com/t/kexec-and-kdump-tools/3338)

<div class="topic-metadata">

**Author:** [@Ankita020696](https://forums.sifive.com/u/Ankita020696)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 11:40am UTC](https://forums.sifive.com/t/kexec-and-kdump-tools/3338 "2020-02-17T11:40:01Z")

</div>

Hi, i am trying to install kexec and kdump but its giving an error,unable to locate package.I want to know whether these tools are supported with RISC v or not? If suported then how can i install and use it?

---

## [Interrupt priorities and levels](https://forums.sifive.com/t/interrupt-priorities-and-levels/3326)

<div class="topic-metadata">

**Author:** [@muneeb\_sifive](https://forums.sifive.com/u/muneeb_sifive)\
**Replies:** 0\
**Last updated:** [February 12, 2020, 6:06am UTC](https://forums.sifive.com/t/interrupt-priorities-and-levels/3326 "2020-02-12T06:06:33Z")

</div>

What is the difference between interrupt priorities and levels in RISC-V? which bits decide 256 different levels in same preemption levels ?

---

## [RISCV interrupts](https://forums.sifive.com/t/riscv-interrupts/3323)

<div class="topic-metadata">

**Author:** [@muneeb\_sifive](https://forums.sifive.com/u/muneeb_sifive)\
**Replies:** 0\
**Last updated:** [February 11, 2020, 9:59am UTC](https://forums.sifive.com/t/riscv-interrupts/3323 "2020-02-11T09:59:20Z")

</div>

I want to ask about interrupts dealing in RISV architecture. As when any exception or interrupt comes during an execution of program in a pipelined processor, the PC of that unfortunate instruction is stored in SEPC reg…

---

## [I'm New to RISC-V](https://forums.sifive.com/t/im-new-to-risc-v/3319)

<div class="topic-metadata">

**Author:** [@Acelink2](https://forums.sifive.com/u/Acelink2)\
**Replies:** 2\
**Last updated:** [February 10, 2020, 11:59pm UTC](https://forums.sifive.com/t/im-new-to-risc-v/3319 "2020-02-10T23:59:35Z")

</div>

Hi guys, I’m new here. I’ve been programming microcontrollers in assembler of various types over the years and now want to start programming RISC-V microcontrollers. Can someone let me know what is the fastest RISC-V mi…

---

## [Dev Board with RISC-V core U-Mode](https://forums.sifive.com/t/dev-board-with-risc-v-core-u-mode/3313)

<div class="topic-metadata">

**Author:** [@dkhayes117](https://forums.sifive.com/u/dkhayes117)\
**Replies:** 4\
**Last updated:** [February 10, 2020, 11:31pm UTC](https://forums.sifive.com/t/dev-board-with-risc-v-core-u-mode/3313 "2020-02-10T23:31:16Z")

</div>

Does anyone know of any development boards that have a RISC-V core that supports U-mode? I have a HiFive Rev B on order, but I don’t think it supports U-mode. I really want to work with a hard core instead of a soft co…

---

## [HiFive RevB startup.s location?](https://forums.sifive.com/t/hifive-revb-startup-s-location/3290)

<div class="topic-metadata">

**Author:** [@Cosmic](https://forums.sifive.com/u/Cosmic)\
**Replies:** 1\
**Last updated:** [January 31, 2020, 7:54pm UTC](https://forums.sifive.com/t/hifive-revb-startup-s-location/3290 "2020-01-31T19:54:34Z")

</div>

Hello, I’m a new user to the HiFive board and I’m part of a team of students working on a project to port a racing drone OS called CleanFlight to the HiFive Revb board (for a proof of concept for Risk-V things). I’ve be…

---

## [DUMB question about CSRs](https://forums.sifive.com/t/dumb-question-about-csrs/3158)

<div class="topic-metadata">

**Author:** [@rbahr](https://forums.sifive.com/u/rbahr)\
**Replies:** 6\
**Last updated:** [January 15, 2020, 3:36pm UTC](https://forums.sifive.com/t/dumb-question-about-csrs/3158 "2020-01-15T15:36:32Z")

</div>

Hi All, I am trying to find an include file that has predefined the ‘current’ list of CSRs and their register numbers. This is to import to a C program and dump / set them. I have seen registers such as ‘mcycle’ appar…

---

## [Discuss on sifive-interrupt-cookbook](https://forums.sifive.com/t/discuss-on-sifive-interrupt-cookbook/3206)

<div class="topic-metadata">

**Author:** [@Phantom0308](https://forums.sifive.com/u/Phantom0308)\
**Replies:** 2\
**Last updated:** [January 13, 2020, 4:11pm UTC](https://forums.sifive.com/t/discuss-on-sifive-interrupt-cookbook/3206 "2020-01-13T16:11:02Z")

</div>

First is a miswrite, In P15 CLINT Vectored Mode: The interrupt handler offset is calculated by mtvec.base + (mtvec.code \* 4). I think here the mtvec.code → mcause.code Following is the thing I want to check #1 P…

---

## [Unable to compile Uboot using Sifive toolchain](https://forums.sifive.com/t/unable-to-compile-uboot-using-sifive-toolchain/3197)

<div class="topic-metadata">

**Author:** [@fahadmubeen](https://forums.sifive.com/u/fahadmubeen)\
**Replies:** 3\
**Last updated:** [January 7, 2020, 10:21am UTC](https://forums.sifive.com/t/unable-to-compile-uboot-using-sifive-toolchain/3197 "2020-01-07T10:21:59Z")

</div>

Hi I tried compiling uboot using Sifive toolchain, and got the following error ( I can compile using other 3rd party toolchain like xpack) don’t know why Sifive toolchain is giving an error) CC lib/vsprintf.o AS …

---

## [Unhandle Page Fault when Boot Linux 5.x on Spike](https://forums.sifive.com/t/unhandle-page-fault-when-boot-linux-5-x-on-spike/3172)

<div class="topic-metadata">

**Author:** [@Phantom0308](https://forums.sifive.com/u/Phantom0308)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 7:46pm UTC](https://forums.sifive.com/t/unhandle-page-fault-when-boot-linux-5-x-on-spike/3172 "2019-12-24T19:46:24Z")

</div>

These days I try to update U SDK v1 to newer gnu tool and linux, these what I did: update buildroot: 2019.11 need to remove BR2\_PACKAGE\_HOST\_MKE2IMG in config update gnu tool chain gcc 9.20 replace with the newest to…

---

## [About RISC V Compilers?](https://forums.sifive.com/t/about-risc-v-compilers/3169)

<div class="topic-metadata">

**Author:** [@YuliaM](https://forums.sifive.com/u/YuliaM)\
**Replies:** 2\
**Last updated:** [December 22, 2019, 1:31am UTC](https://forums.sifive.com/t/about-risc-v-compilers/3169 "2019-12-22T01:31:20Z")

</div>

Dear All, I am new to programming and as well as RISC-V. I have a few questions regarding the RISC-V compilers. They are as follows, Do RISC-V compilers support the C program? From which RISC-V cross compiler can I ge…

---

## [Interleaving C code with assembly](https://forums.sifive.com/t/interleaving-c-code-with-assembly/3156)

<div class="topic-metadata">

**Author:** [@jbrake](https://forums.sifive.com/u/jbrake)\
**Replies:** 3\
**Last updated:** [December 19, 2019, 3:16am UTC](https://forums.sifive.com/t/interleaving-c-code-with-assembly/3156 "2019-12-19T03:16:25Z")

</div>

Is there a way to generate assembly code with the corresponding C code interleaved similar to the --interleave command for the armcc compiler used in Keil? http://www.keil.com/support/man/docs/armcc/armcc\_chr135912492777…

---

## [SiFive Learn Inventor](https://forums.sifive.com/t/sifive-learn-inventor/3089)

<div class="topic-metadata">

**Author:** [@iPostHuman](https://forums.sifive.com/u/iPostHuman)\
**Replies:** 2\
**Last updated:** [December 19, 2019, 2:59am UTC](https://forums.sifive.com/t/sifive-learn-inventor/3089 "2019-12-19T02:59:46Z")

</div>

Hi, Does anyone have deeper details about the SiFive Learn Inventor that Pimoroni is selling? For example, What the max clock frequency is for the SPI interface, or what the pin layout is, or is it 5V tolerant. :thinki…

---

## [Translating an existing C++ Project](https://forums.sifive.com/t/translating-an-existing-c-project/1301)

<div class="topic-metadata">

**Author:** [@hemmerle](https://forums.sifive.com/u/hemmerle)\
**Replies:** 7\
**Last updated:** [December 17, 2019, 2:52pm UTC](https://forums.sifive.com/t/translating-an-existing-c-project/1301 "2019-12-17T14:52:12Z")

</div>

Hi, We have an existing C++ Project Project which we developed for ARM. Now we tried to transfer this project to RISC-V. To be able t make a comparison between the two architectures. I’m able to translate the project u…

---

## [Generating core dumps on bare metal RISC-V](https://forums.sifive.com/t/generating-core-dumps-on-bare-metal-risc-v/3088)

<div class="topic-metadata">

**Author:** [@kuzmin\_robin](https://forums.sifive.com/u/kuzmin_robin)\
**Replies:** 9\
**Last updated:** [December 17, 2019, 12:58am UTC](https://forums.sifive.com/t/generating-core-dumps-on-bare-metal-risc-v/3088 "2019-12-17T00:58:07Z")

</div>

What means are currently available to generate and analyze the core dumps of bare metal RISC-V firmware? (Sorry, as a newbie I can only use 2 web-links in my first post(s)) I work with my-employer-specific fork of mini…

---

## [How to determine the current execution privilege mode](https://forums.sifive.com/t/how-to-determine-the-current-execution-privilege-mode/2823)

<div class="topic-metadata">

**Author:** [@Mike](https://forums.sifive.com/u/Mike)\
**Replies:** 3\
**Last updated:** [December 11, 2019, 8:18am UTC](https://forums.sifive.com/t/how-to-determine-the-current-execution-privilege-mode/2823 "2019-12-11T08:18:03Z")

</div>

Hi everybody, if you wanted to determine the execution privilege mode a RISC-V is currently running in (without knowing it beforehand), how would you do this? The RISC-V ISA Manual Volume II says, on page 15: “In addi…

---

## [The official design RISC-V architecture](https://forums.sifive.com/t/the-official-design-risc-v-architecture/3123)

<div class="topic-metadata">

**Author:** [@Nhanlee97](https://forums.sifive.com/u/Nhanlee97)\
**Replies:** 1\
**Last updated:** [December 10, 2019, 10:32pm UTC](https://forums.sifive.com/t/the-official-design-risc-v-architecture/3123 "2019-12-10T22:32:29Z")

</div>

Hello everyone! I’m Nhan. I’m studying Computer Architecture subject at my university. In this subject, I was introduced the RISC-V architecture by my professor and having a project subject to design again and implement…

---

## [RISC V S7 series](https://forums.sifive.com/t/risc-v-s7-series/3113)

<div class="topic-metadata">

**Author:** [@arvind](https://forums.sifive.com/u/arvind)\
**Replies:** 0\
**Last updated:** [December 5, 2019, 11:05am UTC](https://forums.sifive.com/t/risc-v-s7-series/3113 "2019-12-05T11:05:53Z")

</div>

I need some info for interfacing risc v with axi4, since risc v (s7) contains 4 ports (front port(input), peripheral, system and memory port(output)). Does these ports contains all required ports (R/W etc.) for axi inter…

---

## [Using VC709 instead of VC707](https://forums.sifive.com/t/using-vc709-instead-of-vc707/3068)

<div class="topic-metadata">

**Author:** [@abdelrahmanhussein](https://forums.sifive.com/u/abdelrahmanhussein)\
**Replies:** 0\
**Last updated:** [November 24, 2019, 11:35am UTC](https://forums.sifive.com/t/using-vc709-instead-of-vc707/3068 "2019-11-24T11:35:19Z")

</div>

Hello, I am totally new to the RISC-V domain. I considering implementing Rocket Chip on FPGA, and I found out that this is doable using SiFive Freedom. However, it is stated that the supported boards are ARTY and VC707…

---

## [CLIC](https://forums.sifive.com/t/clic/3043)

<div class="topic-metadata">

**Author:** [@burakt](https://forums.sifive.com/u/burakt)\
**Replies:** 0\
**Last updated:** [November 15, 2019, 5:29pm UTC](https://forums.sifive.com/t/clic/3043 "2019-11-15T17:29:52Z")

</div>

Hello , I am searching interrupt concepts in RISC-V . I understand that CLIC is used for preemptive interrupts. However, in Sifive cores (for example E24 ) external , timer and software interrupts are directly connected…

---

## [U54 core on Arty 7 & S MODE](https://forums.sifive.com/t/u54-core-on-arty-7-s-mode/2986)

<div class="topic-metadata">

**Author:** [@fkt87423](https://forums.sifive.com/u/fkt87423)\
**Replies:** 4\
**Last updated:** [October 30, 2019, 1:25pm UTC](https://forums.sifive.com/t/u54-core-on-arty-7-s-mode/2986 "2019-10-30T13:25:29Z")

</div>

Hi All, I’m developing a own OS on arty 7 100T with the bitstream from sifive\_coreip\_U54\_AXI4\_rtl\_eval\_v19\_08p0p1. I’ve ran in a problem I have no idea yet how to debug. When switching from machine mode to system mode …

---

## [Freedom tools built for Ubuntu14 and CentOS 6](https://forums.sifive.com/t/freedom-tools-built-for-ubuntu14-and-centos-6/2983)

<div class="topic-metadata">

**Author:** [@AntonKrug](https://forums.sifive.com/u/AntonKrug)\
**Replies:** 5\
**Last updated:** [October 29, 2019, 9:33pm UTC](https://forums.sifive.com/t/freedom-tools-built-for-ubuntu14-and-centos-6/2983 "2019-10-29T21:33:33Z")

</div>

The freedom tools binaries are built for the Ubuntu 14 and CentOS 6 distributions: If I wouldn’t want to build a toolchain just to build the toolchain, then I would use only available packages and ubuntu can be upgra…

---

## [HiFive 2 - FE240 (E24) Dev Kit](https://forums.sifive.com/t/hifive-2-fe240-e24-dev-kit/2979)

<div class="topic-metadata">

**Author:** [@IvoBCD](https://forums.sifive.com/u/IvoBCD)\
**Replies:** 1\
**Last updated:** [October 28, 2019, 11:16pm UTC](https://forums.sifive.com/t/hifive-2-fe240-e24-dev-kit/2979 "2019-10-28T23:16:35Z")

</div>

Hi, I was given a HiFive 2 - FE240 (E24) Dev Kit (“HiFive2 Rev A02”). Where can I find documentation and/or SDK for this board ? It’s not listed on https://www.sifive.com/boards It’s not listed as supported by https:…

---

## [Hifive1\_driver.exe not work](https://forums.sifive.com/t/hifive1-driver-exe-not-work/2976)

<div class="topic-metadata">

**Author:** [@dirk](https://forums.sifive.com/u/dirk)\
**Replies:** 0\
**Last updated:** [October 28, 2019, 9:58am UTC](https://forums.sifive.com/t/hifive1-driver-exe-not-work/2976 "2019-10-28T09:58:22Z")

</div>

hi sir, usb driver is not work when i change anther usb port. Whether the driver is bound to USB port?

---

## [Unable to compile RISC-V bitstream](https://forums.sifive.com/t/unable-to-compile-risc-v-bitstream/2967)

<div class="topic-metadata">

**Author:** [@epicriscv](https://forums.sifive.com/u/epicriscv)\
**Replies:** 0\
**Last updated:** [October 24, 2019, 11:31am UTC](https://forums.sifive.com/t/unable-to-compile-risc-v-bitstream/2967 "2019-10-24T11:31:40Z")

</div>

I’m faced with the following error when trying to compile the RISC-V bitstream for a Nexys4: ~/riscv/lowrisc-chip/fpga/board/nexys4\_ddr$ CONFIG=Nexys4DebugConfig make jump FPGA\_DIR=/home/user/riscv/lowrisc-chip/fpga/b…

---

## [A compiler bug when a uint32\_t is logical right shifted with 32 bit on RV32](https://forums.sifive.com/t/a-compiler-bug-when-a-uint32-t-is-logical-right-shifted-with-32-bit-on-rv32/2965)

<div class="topic-metadata">

**Author:** [@daiw](https://forums.sifive.com/u/daiw)\
**Replies:** 2\
**Last updated:** [October 23, 2019, 3:18pm UTC](https://forums.sifive.com/t/a-compiler-bug-when-a-uint32-t-is-logical-right-shifted-with-32-bit-on-rv32/2965 "2019-10-23T15:18:03Z")

</div>

In following code, when b=32, c should be 0, but the result from gcc for RV32 is 0xFFFFFFFF. So I think it is a bug ! #include \<stdint.h\> int checkShift(void) { uint32\_t a, b, c, d; d = 0; a = 0xFFFFFFFF; for (b=…

---

## [I am getting error while trying to boot linux on spike](https://forums.sifive.com/t/i-am-getting-error-while-trying-to-boot-linux-on-spike/2278)

<div class="topic-metadata">

**Author:** [@suhas](https://forums.sifive.com/u/suhas)\
**Replies:** 6\
**Last updated:** [October 17, 2019, 4:06pm UTC](https://forums.sifive.com/t/i-am-getting-error-while-trying-to-boot-linux-on-spike/2278 "2019-10-17T16:06:25Z")

</div>

spike +disk=root.bin bbl vmlinux this is the error I am getting –disk/+disk unsupported (use a ramdisk)

---

## [An exception occured while adding codes to crt.S](https://forums.sifive.com/t/an-exception-occured-while-adding-codes-to-crt-s/2943)

<div class="topic-metadata">

**Author:** [@123456789](https://forums.sifive.com/u/123456789)\
**Replies:** 0\
**Last updated:** [October 16, 2019, 11:53am UTC](https://forums.sifive.com/t/an-exception-occured-while-adding-codes-to-crt-s/2943 "2019-10-16T11:53:06Z")

</div>

Before jump to main program, I add some codes in crt.S file. .equ cons0, 0x1048901 li x31, cons0 csrw pmpcfg0, x31 li x31, 0 j main The core enters an exception. The mcause register is 1, meaning instruction acc…

[Previous page](https://forums.sifive.com/c/archive/riscv/5.md?page=1)

[Next page](https://forums.sifive.com/c/archive/riscv/5.md?page=3)
