Skip to content

Commit

Permalink
[openocd] enable GDB error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Aug 30, 2023
1 parent b71120a commit ac04da2
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions sw/openocd/openocd_neorv32.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,31 @@ ftdi channel 0
ftdi layout_init 0x0038 0x003b
ftdi layout_signal nTRST -ndata 0x0010 -noe 0x0040


# ----------------------------------------------
# Logical interface configuration
# ----------------------------------------------
adapter speed 4000
transport select jtag


# ----------------------------------------------
# Target configuration
# ----------------------------------------------
set _CHIPNAME neorv32
jtag newtap $_CHIPNAME cpu -irlen 5

set _TARGETNAME $_CHIPNAME.cpu

target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME


# ----------------------------------------------
# Access memory only via program buffer
# ----------------------------------------------
# access memory only via program buffer
riscv set_mem_access progbuf


# ----------------------------------------------
# Expose NEORV32-specific CSRs
# ----------------------------------------------
# expose NEORV32-specific CSRs
riscv expose_csrs 4032=mxisa

# enable access error reports
gdb_report_data_abort enable
gdb_report_register_access_error enable

# ----------------------------------------------
# Start session
# ----------------------------------------------
init
halt

echo "Target HALTED."
echo "Ready for remote connections."
echo "Target HALTED. Ready for remote connections."

0 comments on commit ac04da2

Please sign in to comment.