Skip to content

Commit

Permalink
[openocd] cleanup
Browse files Browse the repository at this point in the history
* update neorv32-specific CSRs
* remove redundant (maybe deprecated???) memory access type configuration
  • Loading branch information
stnolting committed Oct 18, 2023
1 parent 13faace commit cff3c3c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions sw/openocd/openocd_neorv32.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# NEORV32 openOCD configuration file
# NEORV32 on-chip debugger openOCD configuration file

# ----------------------------------------------
# Physical interface configuration
# -> Adjust this for your adapter
# -> ADJUST THIS FOR YOUR ADAPTER / SETUP
# ----------------------------------------------

# Default: FT2232H breakout board
Expand All @@ -29,17 +29,15 @@ jtag newtap $_CHIPNAME cpu -irlen 5
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME

# access memory only via program buffer
riscv set_mem_access progbuf

# expose NEORV32-specific CSRs
riscv expose_csrs 2048=cfusel
riscv expose_csrs 2049=cfureg
riscv expose_csrs 2048=cfureg0
riscv expose_csrs 2049=cfureg1
riscv expose_csrs 2050=cfureg2
riscv expose_csrs 2051=cfureg3
riscv expose_csrs 4032=mxisa

# enable access error reports
# enable memory access error reports
gdb_report_data_abort enable
#gdb_report_register_access_error enable

# ----------------------------------------------
# Start session
Expand Down

0 comments on commit cff3c3c

Please sign in to comment.