# Bootloader restore

**URL:** <https://forums.sifive.com/t/bootloader-restore/2429>\
**Category:** HiFive1 Rev B\
**Created:** [June 1, 2019, 7:19pm UTC](https://forums.sifive.com/t/bootloader-restore/2429 "2019-06-01T19:19:17Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![pds](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@pds](https://forums.sifive.com/u/pds)\
**Post date:** [March 10, 2023, 8:17pm UTC](https://forums.sifive.com/t/bootloader-restore/2429/20 "2023-03-10T20:17:38Z")

</div>

As @Almindor notes above, [_It seems to be something wrong with clock setting_](https://forums.sifive.com/t/bootloader-restore/2429/12), indeed the clock path diagram in Figure 3 of Chapter 6 of the [FE310-G002 Manual](https://sifive.cdn.prismic.io/sifive/034760b5-ac6a-4b1c-911c-f4148bb2c4a5_fe310-g002-v1p5.pdf) is drawn with a few significant mistakes, thus giving very confusing observations when programming and/or changing configurations of the clock path.

See [Understanding the PRCI clock path](https://forums.sifive.com/t/understanding-the-prci-clock-path/5827/2) or the description and examples in the GitHub repo at [Demonstrating PRCI](https://github.com/psherman42/Demonstrating-PRCI).

Otherwise @edsut, there’s not much need to worry about bricking the FE310 SoC when removing the doubletap bootloader or replacing any of the code in FLASH at 0x2000 0000 upwards. See discussion at

> [@Is there C boot code (source) for RevB02 hardware?](https://forums.sifive.com/t/is-there-c-boot-code-source-for-revb02-hardware/5987/5):
>
> Good thinking @edsut. the U3 (Segger) chip is optional; you can bypass it by not connecting the U5 (micro-USB) and instead supplying power to J7 (barrel connector). Your JTAG signals are available on J1 (10-pin, 2x5, might not be populated) in the standard fashion. I recommend OpenOCD with an Olimex or similar FT(2)232-based device, or even bitbang from a Raspberry PI. Don’t confuse the doubletap bootloader (DTB) in the FLASH area (0x2000 0000) with the flash recovery mechanism (FRM) library in…

---

_[View the full topic](https://forums.sifive.com/t/bootloader-restore/2429)._
