# HiFive1 Rev B

**URL:** https://forums.sifive.com/c/hifive1/9.md?page=1

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

**Page:** 2

---

## [How to enable rtc in fe310 with 1sec resolution in rtcs?](https://forums.sifive.com/t/how-to-enable-rtc-in-fe310-with-1sec-resolution-in-rtcs/6289)

<div class="topic-metadata">

**Author:** [@bsvtgc](https://forums.sifive.com/u/bsvtgc)\
**Replies:** 2\
**Last updated:** [September 19, 2023, 1:40pm UTC](https://forums.sifive.com/t/how-to-enable-rtc-in-fe310-with-1sec-resolution-in-rtcs/6289 "2023-09-19T13:40:29Z")

</div>

Hi, In my board, RTC is clocked with 32.768 khz crystal with following settings: /\* Disable interrupt \*/ csrw mie, 0; (gdb) x 0x10000040 =\> RTC config register 0x10000040: 0x1000100f =\> scale 15 and enabled and …

---

## [New RISC-V assembler](https://forums.sifive.com/t/new-risc-v-assembler/6278)

<div class="topic-metadata">

**Author:** [@PaoloR](https://forums.sifive.com/u/PaoloR)\
**Replies:** 2\
**Last updated:** [September 15, 2023, 4:29pm UTC](https://forums.sifive.com/t/new-risc-v-assembler/6278 "2023-09-15T16:29:04Z")

</div>

I am making available a new assembler that support RISC-V. In short: The assembler is all written in Java and requires the Oracle GrallVM Java (the free version) It is a universal assembler and RISC-V is the firs…

---

## [FreedomStudio Mac OSX: "Could not connect to J-Link. Please check if plugged into USB port or Ethernet switch"](https://forums.sifive.com/t/freedomstudio-mac-osx-could-not-connect-to-j-link-please-check-if-plugged-into-usb-port-or-ethernet-switch/4179)

<div class="topic-metadata">

**Author:** [@yourimperialmajesty](https://forums.sifive.com/u/yourimperialmajesty)\
**Replies:** 4\
**Last updated:** [August 29, 2023, 6:39am UTC](https://forums.sifive.com/t/freedomstudio-mac-osx-could-not-connect-to-j-link-please-check-if-plugged-into-usb-port-or-ethernet-switch/4179 "2023-08-29T06:39:43Z")

</div>

I’m trying to use Freedom Studio on Mac OSX Catalina with the rev-b board. I’ve connected the board to my Mac via a USB adapter (since the Mac uses usb-c) However I get the following error when trying to run a debug: S…

---

## [Some questions about Hifive1 Rev B PWM](https://forums.sifive.com/t/some-questions-about-hifive1-rev-b-pwm/6259)

<div class="topic-metadata">

**Author:** [@Mcshaw](https://forums.sifive.com/u/Mcshaw)\
**Replies:** 0\
**Last updated:** [August 11, 2023, 12:40pm UTC](https://forums.sifive.com/t/some-questions-about-hifive1-rev-b-pwm/6259 "2023-08-11T12:40:54Z")

</div>

On Hifive1 Rev B,I found on the pin diagram that PIN4, PIN8~PIN11, and PIN16 have PWM function, but there is no PWM description in the schematics. How should I initialize the PWM function?

---

## [Some pwm can't work on Hifive1](https://forums.sifive.com/t/some-pwm-cant-work-on-hifive1/1422)

<div class="topic-metadata">

**Author:** [@cailinlin](https://forums.sifive.com/u/cailinlin)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 12:20pm UTC](https://forums.sifive.com/t/some-pwm-cant-work-on-hifive1/1422 "2023-08-10T12:20:39Z")

</div>

On Hifive1, PIN3-PIN6,PIN8-PIN11,PIN16-PIN19 are three groups pwm, I don’t know why PIN4,PIN8 and PIN16 can’t work as pwm? They are PWM1\_0, PWM0\_0 and PWM2\_0. Also, on hifive1, these pins are not identification “~”.

---

## [Function calls seem to greatly slow down code](https://forums.sifive.com/t/function-calls-seem-to-greatly-slow-down-code/6242)

<div class="topic-metadata">

**Author:** [@BAF](https://forums.sifive.com/u/BAF)\
**Replies:** 1\
**Last updated:** [July 28, 2023, 6:35pm UTC](https://forums.sifive.com/t/function-calls-seem-to-greatly-slow-down-code/6242 "2023-07-28T18:35:25Z")

</div>

Hi, While working on a project, I deciding to make execution time measurements by reading the mcycle register. The result was mediocre and after investigation it seems that function calls are the problem. I created a s…

---

## [JAL 1Mib jump](https://forums.sifive.com/t/jal-1mib-jump/6228)

<div class="topic-metadata">

**Author:** [@svasekar](https://forums.sifive.com/u/svasekar)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 10:02am UTC](https://forums.sifive.com/t/jal-1mib-jump/6228 "2023-07-12T10:02:13Z")

</div>

HI, I get the below error: relocation truncated to fit: R\_RISCV\_JAL when I try to jump to 1Mib using JAL. How to resolve this. code: jal 1f 1: jal x5, 2f .fill (1024\*1024),1,0 2: #more code

---

## [Debugging sifive-welcome with FreedomStudio-4.18.0.2021-04-1-x86\_64-linux-ubuntu14 on Ubuntu 22.04.2 LTS](https://forums.sifive.com/t/debugging-sifive-welcome-with-freedomstudio-4-18-0-2021-04-1-x86-64-linux-ubuntu14-on-ubuntu-22-04-2-lts/6092)

<div class="topic-metadata">

**Author:** [@jahro\_me](https://forums.sifive.com/u/jahro_me)\
**Replies:** 0\
**Last updated:** [March 31, 2023, 9:29pm UTC](https://forums.sifive.com/t/debugging-sifive-welcome-with-freedomstudio-4-18-0-2021-04-1-x86-64-linux-ubuntu14-on-ubuntu-22-04-2-lts/6092 "2023-03-31T21:29:51Z")

</div>

Hello world, i am trying to get the sample sifive-welcome project running with FreedomStudio-4.18.0.2021-04-1-x86\_64-linux-ubuntu14 on Ubuntu 22.04.2 LTS. I remember it a bit easier last time i tried. But now I am stuck…

---

## [Question about setting configCPU\_CLOCK\_HZ in FreeRTOS](https://forums.sifive.com/t/question-about-setting-configcpu-clock-hz-in-freertos/6197)

<div class="topic-metadata">

**Author:** [@jose](https://forums.sifive.com/u/jose)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 5:46pm UTC](https://forums.sifive.com/t/question-about-setting-configcpu-clock-hz-in-freertos/6197 "2023-06-14T17:46:42Z")

</div>

Hi all. In the case of setting “#define configCPU\_CLOCK\_HZ ( MTIME\_RATE\_HZ )” in FreeRTOSConfig.h among the contents of the demo source provided by FreeRTOS MTIME\_RATE\_HZ was set to 32768 to use the external clock conf…

---

## [Serial I/O Paradigm -- being amoorous](https://forums.sifive.com/t/serial-i-o-paradigm-being-amoorous/6189)

<div class="topic-metadata">

**Author:** [@pds](https://forums.sifive.com/u/pds)\
**Replies:** 0\
**Last updated:** [June 11, 2023, 12:34am UTC](https://forums.sifive.com/t/serial-i-o-paradigm-being-amoorous/6189 "2023-06-11T00:34:22Z")

</div>

A two-step process is common practice of serial data transfer: first transmit data down the wire; then receive data back from the wire. After transmitting, wait to make sure data actually goes out. Before receiving, wait…

---

## [Initialize and set up of GPIO pins](https://forums.sifive.com/t/initialize-and-set-up-of-gpio-pins/6127)

<div class="topic-metadata">

**Author:** [@Jonny040](https://forums.sifive.com/u/Jonny040)\
**Replies:** 5\
**Last updated:** [June 4, 2023, 3:12am UTC](https://forums.sifive.com/t/initialize-and-set-up-of-gpio-pins/6127 "2023-06-04T03:12:57Z")

</div>

Hey, I am quite new to using the HiFive1 rev b. I am using RISC-V MultiZone and want to implement a small window sensor software in one of the zones. Since I can’t figure out how to use the metal Freedom library with Mul…

---

## [Trustzone equivalent in RISCV](https://forums.sifive.com/t/trustzone-equivalent-in-riscv/6133)

<div class="topic-metadata">

**Author:** [@nami1508](https://forums.sifive.com/u/nami1508)\
**Replies:** 1\
**Last updated:** [May 17, 2023, 3:51pm UTC](https://forums.sifive.com/t/trustzone-equivalent-in-riscv/6133 "2023-05-17T15:51:53Z")

</div>

Hi, I’m new to RISCV. Just trying to understand if we have any module equivalent of Arm Trustzone in RISCV (especially in Sifive E21 or E31). Is it correct to assume that the Physical Memory Protection (PMP) of RISCV …

---

## [How PMU handles power on reset and reset button push?](https://forums.sifive.com/t/how-pmu-handles-power-on-reset-and-reset-button-push/6118)

<div class="topic-metadata">

**Author:** [@bsvtgc](https://forums.sifive.com/u/bsvtgc)\
**Replies:** 9\
**Last updated:** [May 15, 2023, 4:05pm UTC](https://forums.sifive.com/t/how-pmu-handles-power-on-reset-and-reset-button-push/6118 "2023-05-15T16:05:17Z")

</div>

Hi, What would be the difference for PMU in handling the power on reset ( unplug the power / usb cable) and reset button push on board? FE310 manual on page 72 PMU reset causes can be 0 - Reset and 8 - power on reset.

---

## [Status of SiFive FreeRTOS-metal Port](https://forums.sifive.com/t/status-of-sifive-freertos-metal-port/6123)

<div class="topic-metadata">

**Author:** [@ay23](https://forums.sifive.com/u/ay23)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 4:00pm UTC](https://forums.sifive.com/t/status-of-sifive-freertos-metal-port/6123 "2023-05-09T16:00:35Z")

</div>

Hello, I am inquiring about the status of SiFive’s FreeRTOS-metal port. I am a bit concerned about the reliability of this port due to its seeming lack of support from the owners of its repository. For example, there’s …

---

## [Using Freedom Metal without Freedom E SDK](https://forums.sifive.com/t/using-freedom-metal-without-freedom-e-sdk/6121)

<div class="topic-metadata">

**Author:** [@Jonny040](https://forums.sifive.com/u/Jonny040)\
**Replies:** 0\
**Last updated:** [May 9, 2023, 2:55pm UTC](https://forums.sifive.com/t/using-freedom-metal-without-freedom-e-sdk/6121 "2023-05-09T14:55:50Z")

</div>

Hello, I am new with working with the HiFive1 Rev B. I want to use MultiZone on the board to implement a little smart home device. In order to use the GPIO Pins I tried to use the Freedom Metal library inside of one of …

---

## [FreedomStudio crashes when creating a new project](https://forums.sifive.com/t/freedomstudio-crashes-when-creating-a-new-project/6110)

<div class="topic-metadata">

**Author:** [@xsimplex](https://forums.sifive.com/u/xsimplex)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 9:39pm UTC](https://forums.sifive.com/t/freedomstudio-crashes-when-creating-a-new-project/6110 "2023-05-04T21:39:21Z")

</div>

Hi, I hope this is the right place to post this, apologies if not. Also, I probably chose an incorrect category for this post, but I couldn’t see one for FreedomStudio. I’m currently running into an issue with FreedomS…

---

## [Write to external flash](https://forums.sifive.com/t/write-to-external-flash/6100)

<div class="topic-metadata">

**Author:** [@ManuelOnSiFive](https://forums.sifive.com/u/ManuelOnSiFive)\
**Replies:** 1\
**Last updated:** [April 17, 2023, 4:39pm UTC](https://forums.sifive.com/t/write-to-external-flash/6100 "2023-04-17T16:39:23Z")

</div>

I am a new owner of a HiFive1 Rev B (technically the sparkfun Red-V) and I’m looking to fiddle around with reading and writing to the external qspi flash. I wanted to check if anyone here has some experience with it. I’…

---

## [Beginner trying to set up timer IRQ in assembler: how to print CSRs in GDB?](https://forums.sifive.com/t/beginner-trying-to-set-up-timer-irq-in-assembler-how-to-print-csrs-in-gdb/2764)

<div class="topic-metadata">

**Author:** [@Shugyousha](https://forums.sifive.com/u/Shugyousha)\
**Replies:** 25\
**Last updated:** [April 11, 2023, 7:37pm UTC](https://forums.sifive.com/t/beginner-trying-to-set-up-timer-irq-in-assembler-how-to-print-csrs-in-gdb/2764 "2023-04-11T19:37:34Z")

</div>

I am trying to set up a machine timer interrupt using the following code (on the HiFive1 RevB on Linux with the freedom-e-SDK on the CLI. I just post the most relevant parts here; it’s written in assembler for the most p…

---

## [Why are format strings showing blank values](https://forums.sifive.com/t/why-are-format-strings-showing-blank-values/6096)

<div class="topic-metadata">

**Author:** [@tomh](https://forums.sifive.com/u/tomh)\
**Replies:** 2\
**Last updated:** [April 6, 2023, 7:15pm UTC](https://forums.sifive.com/t/why-are-format-strings-showing-blank-values/6096 "2023-04-06T19:15:01Z")

</div>

I am trying to print some values to stdout calling a “dump” function (part of a library I have made which gets linked at compile time) void dump(tensor \*t, int asfloat) { for (int j = 0; j \< t-\>data\_len; j++) { ui…

---

## [ESP32-SOLO-1 handshake pin](https://forums.sifive.com/t/esp32-solo-1-handshake-pin/6085)

<div class="topic-metadata">

**Author:** [@schoi21c](https://forums.sifive.com/u/schoi21c)\
**Replies:** 6\
**Last updated:** [March 28, 2023, 6:19pm UTC](https://forums.sifive.com/t/esp32-solo-1-handshake-pin/6085 "2023-03-28T18:19:26Z")

</div>

Hi, Based on previous conversations on the forum, it looks like GPIO10 is some sort of handshake pin between FE310 and ESP32. Could someone point me to the documentation stating that from FE310 side? How about from ESP…

---

## [Data segment did not fit in ram](https://forums.sifive.com/t/data-segment-did-not-fit-in-ram/6090)

<div class="topic-metadata">

**Author:** [@tomh](https://forums.sifive.com/u/tomh)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 4:13am UTC](https://forums.sifive.com/t/data-segment-did-not-fit-in-ram/6090 "2023-03-28T04:13:10Z")

</div>

When building I am getting the error “data segment did not fit in ram” but i cant find a clear value as to how big the data segment can be. I’m sure it should fit into the 32Mb flash. But perhaps im wrong about the 32Mb …

---

## [GPIO 4 and 10 voltage lower than 3.3V](https://forums.sifive.com/t/gpio-4-and-10-voltage-lower-than-3-3v/6080)

<div class="topic-metadata">

**Author:** [@schoi21c](https://forums.sifive.com/u/schoi21c)\
**Replies:** 4\
**Last updated:** [March 23, 2023, 4:24pm UTC](https://forums.sifive.com/t/gpio-4-and-10-voltage-lower-than-3-3v/6080 "2023-03-23T16:24:34Z")

</div>

Hi, I noticed that the voltage on GPIO 4 and GPIO 10 are lower than the expected 3.3 when they are driven high. I measure 2.2V on GPIO 10, and 1.6V on GPIO 4. Is this within spec? I looked at the documentations but di…

---

## [Is there C boot code (source) for RevB02 hardware?](https://forums.sifive.com/t/is-there-c-boot-code-source-for-revb02-hardware/5987)

<div class="topic-metadata">

**Author:** [@edsut](https://forums.sifive.com/u/edsut)\
**Replies:** 4\
**Last updated:** [March 10, 2023, 8:08pm UTC](https://forums.sifive.com/t/is-there-c-boot-code-source-for-revb02-hardware/5987 "2023-03-10T20:08:01Z")

</div>

Hi, I’m brand new to Risc-V, just received my HiFive1-RevB02 board. I like to start things off by building and installing the boot firmware, so can someone point me to it? I’ve downloaded everything I could from the H…

---

## [Bootloader restore](https://forums.sifive.com/t/bootloader-restore/2429)

<div class="topic-metadata">

**Author:** [@Almindor](https://forums.sifive.com/u/Almindor)\
**Replies:** 19\
**Last updated:** [March 10, 2023, 8:17pm UTC](https://forums.sifive.com/t/bootloader-restore/2429 "2023-03-10T20:17:38Z")

</div>

I’m working with hifive1-revB using rust and have just learned about the bootloader recovery “pre-main” piece of code that is inserted as part of metal/freedom-sdk programs. Rust doesn’t make use of this by default and…

---

## [Schematics Licence](https://forums.sifive.com/t/schematics-licence/6046)

<div class="topic-metadata">

**Author:** [@Aslyx](https://forums.sifive.com/u/Aslyx)\
**Replies:** 2\
**Last updated:** [March 9, 2023, 6:38pm UTC](https://forums.sifive.com/t/schematics-licence/6046 "2023-03-09T18:38:51Z")

</div>

Hi, I looked at the schematics for this board here: https://sifive.cdn.prismic.io/sifive/c34f4c7f-0d3a-493e-8a19-a0b18f8a4555\_hifive1-b01-schematics.pdf. It was my understanding that the hardware is open source, so if …

---

## [Trap handling support for user mode](https://forums.sifive.com/t/trap-handling-support-for-user-mode/6066)

<div class="topic-metadata">

**Author:** [@bsvtgc](https://forums.sifive.com/u/bsvtgc)\
**Replies:** 1\
**Last updated:** [March 7, 2023, 10:04pm UTC](https://forums.sifive.com/t/trap-handling-support-for-user-mode/6066 "2023-03-07T22:04:39Z")

</div>

Hi, Is trap handling in user mode supported in Hifive1 Rev B ? I don’t find utvec register in FE310 manual. If user trap handling is NOT supported (& there is NO supervisor mode), is it right to assume, with privilege …

---

## [Broken download links on sifive.com/software](https://forums.sifive.com/t/broken-download-links-on-sifive-com-software/6061)

<div class="topic-metadata">

**Author:** [@jakelevirne](https://forums.sifive.com/u/jakelevirne)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 6:08pm UTC](https://forums.sifive.com/t/broken-download-links-on-sifive-com-software/6061 "2023-03-06T18:08:10Z")

</div>

Hi. I’m trying to get my hifive1 rev b setup and working by following the Getting Started guide. On step 7, I’m setting up the toolchain and attempting to download from Software - SiFive. Every download link I follow br…

---

## [E21 Design.dts modifications for TIM execution](https://forums.sifive.com/t/e21-design-dts-modifications-for-tim-execution/6053)

<div class="topic-metadata">

**Author:** [@knfrey](https://forums.sifive.com/u/knfrey)\
**Replies:** 0\
**Last updated:** [February 27, 2023, 8:12pm UTC](https://forums.sifive.com/t/e21-design-dts-modifications-for-tim-execution/6053 "2023-02-27T20:12:07Z")

</div>

The default settings for the design.dts file are as shown below for the hello demo project. These settings target the flash. /include/ “core.dts” / { chosen { metal,entry = \<&L4 1 4194304\>; metal,boothart = \<&L11\>; …

---

## [E21 RTL bring up for JTAG interface](https://forums.sifive.com/t/e21-rtl-bring-up-for-jtag-interface/6011)

<div class="topic-metadata">

**Author:** [@knfrey](https://forums.sifive.com/u/knfrey)\
**Replies:** 4\
**Last updated:** [February 27, 2023, 7:56pm UTC](https://forums.sifive.com/t/e21-rtl-bring-up-for-jtag-interface/6011 "2023-02-27T19:56:09Z")

</div>

Sorry if this isn’t in the right category but it looks like the E21 Core forums have been archived. I am building the RTL project from scratch in the Vivado tool flow for the Arty A7 board. It is generating errors when…

---

## [How to send data in UART continuously without interrupt?](https://forums.sifive.com/t/how-to-send-data-in-uart-continuously-without-interrupt/6018)

<div class="topic-metadata">

**Author:** [@bsvtgc](https://forums.sifive.com/u/bsvtgc)\
**Replies:** 2\
**Last updated:** [January 29, 2023, 8:59pm UTC](https://forums.sifive.com/t/how-to-send-data-in-uart-continuously-without-interrupt/6018 "2023-01-29T20:59:13Z")

</div>

Hi, Without enabling/using UART interrupt, how to keep transmitting data through UART, without data being lost/not sent. When I send the data by following way, send\_data: nop; li a0, 0xaa; li t0, UART0\_BAS…

[Previous page](https://forums.sifive.com/c/hifive1/9.md)

[Next page](https://forums.sifive.com/c/hifive1/9.md?page=2)
