# View Machine registers in Freedom studio

**URL:** <https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652>\
**Category:** HiFive Unleashed\
**Created:** [April 29, 2021, 6:27am UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652 "2021-04-29T06:27:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreeju](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sreeju](https://forums.sifive.com/u/sreeju)\
**Post date:** [April 29, 2021, 6:27am UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/1 "2021-04-29T06:27:07Z")

</div>

Hi,

I’m using Freedom studio V 4\_18.

I wish to view machine registers while debugging. But I couldnt find a way for that.

I tried by adding register list as per user manual. Need help on this.

Thank You  
Sreeju

---

<div class="post-metadata">

**Author:** ![dconn](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dconn](https://forums.sifive.com/u/dconn)\
**Post date:** [April 29, 2021, 2:00pm UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/2 "2021-04-29T14:00:37Z")

</div>

Hi Sreeju,

Which machine registers are you interested in? If you launch a debug session, there is a default list of CSRs within the Register window. If it is not open by default, go to Window → Show View → Registers. After you launch a debug session you should see a list of important CSRs underneath the normal user registers.

---

<div class="post-metadata">

**Author:** ![dconn](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dconn](https://forums.sifive.com/u/dconn)\
**Post date:** [April 29, 2021, 2:02pm UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/3 "2021-04-29T14:02:11Z")

</div>

Also please confirm which debug hardware you are using, as well as your target board.

Thanks

---

<div class="post-metadata">

**Author:** ![sreeju](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sreeju](https://forums.sifive.com/u/sreeju)\
**Post date:** [April 30, 2021, 6:59am UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/4 "2021-04-30T06:59:50Z")

</div>

Hi DConn,

We wish to view the CSRs like  
**mstatus, misa, mie, mtvec, mscratch, mepc, mcause, mtval, mip, mvendorid, marchid, mimpid, mhartid, tselect, tdata1, tdata2, tdata3, dcsr, dpc, dscratch.**

The default list shows only the General purpose registers.

**zero,ra,sp,gp,tp,t0-t6** etc are being displayed in GUI.

Thank You

---

<div class="post-metadata">

**Author:** ![sreeju](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sreeju](https://forums.sifive.com/u/sreeju)\
**Post date:** [April 30, 2021, 7:02am UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/5 "2021-04-30T07:02:03Z")

</div>

Hi DConn,

```
  We are running program on our own RISCV64 processor and it now being tested on FPGA board. The debug hardware is Segger JLink interface.

```

Thank You

---

<div class="post-metadata">

**Author:** ![sreeju](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@sreeju](https://forums.sifive.com/u/sreeju)\
**Post date:** [April 30, 2021, 7:47am UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/6 "2021-04-30T07:47:19Z")

</div>

Please click the link here… [[Can't access CSRs on HiFive1 rev B from Freedom Studio (via J-Link OB)](https://forums.sifive.com/t/cant-access-csrs-on-hifive1-rev-b-from-freedom-studio-via-j-link-ob/2623)]

Have Segger added support for CSRs?

---

<div class="post-metadata">

**Author:** ![dconn](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dconn](https://forums.sifive.com/u/dconn)\
**Post date:** [April 30, 2021, 3:27pm UTC](https://forums.sifive.com/t/view-machine-registers-in-freedom-studio/4652/7 "2021-04-30T15:27:38Z")

</div>

> [@sreeju](#):
>
> `on our own RISCV64 processor`

Hi - just making sure - you are using your own core, and not a SiFive core? It looks like Segger does support CSR list for RV32 on our SiFive cores using Freedom Studio but not for RV64. You may need to get in touch with them to inquire about support.
