File tree 4 files changed +45
-2
lines changed 4 files changed +45
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
1
2
2
3
source ../paths
3
4
Original file line number Diff line number Diff line change
1
+ interface remote_bitbang
2
+ remote_bitbang_host localhost
3
+ remote_bitbang_port 9824
4
+
5
+ set _CHIPNAME riscv
6
+ jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
7
+
8
+ set _TARGETNAME $_CHIPNAME.cpu
9
+ target create $_TARGETNAME riscv -chain-position $_TARGETNAME
10
+
11
+ gdb_report_data_abort enable
12
+
13
+ init
14
+ halt
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ source ../paths
4
+
5
+ ELF=" $1 "
6
+
7
+
8
+ SPIKE_LAUNCH=" $SPIKE --rbb-port=9824 -m0xc000000:0x90000000 -H $ELF "
9
+ OPENOCD_LAUNCH=" $OPENOCD -f $OPENOCD_CFG_SPIKE "
10
+ GDB_LAUNCH=" $GDB -x $GDB_SCRIPT --silent $ELF "
11
+
12
+
13
+ # For Spike launch
14
+ export LD_LIBRARY_PATH=" $LD_LIB_PATH "
15
+
16
+
17
+ # Launch: Spike + OpenOCD + GDB
18
+ xfce4-terminal \
19
+ --tab --title=Spike -e " $SPIKE_LAUNCH " \
20
+ --tab --title=OpenOCD -e " $OPENOCD_LAUNCH " \
21
+ --tab --title=GDB --hold -e " $GDB_LAUNCH "
22
+
23
+ exit 0
Original file line number Diff line number Diff line change 5
5
OPENOCD="/home/user/eclipse_4.4.1/TOOLS/riscv-openocd-0.10.0-2020.12.1-x86_64-linux-ubuntu14/bin/openocd"
6
6
OPENOCD_CFG_HW="./riscpoa.cfg"
7
7
8
- #GDB="/home/user/eclipse_4.4.1/TOOLS/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gdb-py"
9
8
GDB="/home/user/eclipse_4.4.1/TOOLS/gdb_overlay/riscv64-unknown-elf-gdb-10.1.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gdb-py"
10
9
10
+ #--------------------------------
11
+ #For Spike:
12
+ SPIKE="/home/user/eclipse_4.4.1/TOOLS/riscv_tui_12.12.18/bin/spike"
13
+ LD_LIB_PATH="/home/user/eclipse_4.4.1/TOOLS/riscv_tui_12.12.18/lib/"
14
+ OPENOCD_CFG_SPIKE="./spike.cfg"
15
+
11
16
#--------------------------------
12
17
#Launch configurations:
13
- # "/gdb .py" => Launch execution
18
+ # "/gdb_launch .py" => Launch execution
14
19
# "/gdb_ovmgr_replace.py" => Launch unit tests
15
20
16
21
GDB_SCRIPT="../gdb-py/gdb_launch.py"
You can’t perform that action at this time.
0 commit comments