Skip to content

Commit c53e378

Browse files
committed
[Labs setup] Pushing changes to correspond to git issue lowRISC#116. Can communicate with board, but loading program via uart still yeilds an error
1 parent d748b7c commit c53e378

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUN tar -C / -xf openfpgaloader.tar.gz --strip-components=1
5959
# Build OpenOCD
6060
RUN git clone https://github.com/openocd-org/openocd.git \
6161
&& cd openocd \
62-
&& git checkout v0.11.0 \
62+
&& git checkout v0.12.0 \
6363
&& ./bootstrap \
6464
&& ./configure \
6565
&& make \

pulp_riscv_dbg.core

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ targets:
4242
filesets:
4343
- files_src
4444
- tool_verilator ? (files_verilator)
45-
- "use_bscane_tap ? (files_xilinx_bscane_tap)"
46-
- "!use_bscane_tap ? (files_jtag_tap)"
45+
- files_xilinx_bscane_tap
46+
# - "use_bscane_tap ? (files_xilinx_bscane_tap)"
47+
# - "!use_bscane_tap ? (files_jtag_tap)"

util/arty-a7-openocd-cfg.tcl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,18 @@
55
adapter driver ftdi
66
transport select jtag
77

8-
ftdi_device_desc "Digilent USB Device"
9-
ftdi_vid_pid 0x0403 0x6010
10-
ftdi_channel 0
11-
ftdi_layout_init 0x0088 0x008b
8+
ftdi device_desc "Digilent USB Device"
9+
ftdi vid_pid 0x0403 0x6010
10+
ftdi channel 1
11+
ftdi layout_init 0x0088 0x008b
1212
reset_config none
1313

1414
# Configure JTAG chain and the target processor
1515
set _CHIPNAME riscv
1616

1717
# Configure JTAG expected ID
18-
# arty-a7-35t
19-
set _EXPECTED_ID 0x0362D093
2018
# arty-a7-100t
21-
# set _EXPECTED_ID 0x13631093
19+
set _EXPECTED_ID 0x13631093
2220

2321
jtag newtap $_CHIPNAME cpu -irlen 6 -expected-id $_EXPECTED_ID -ignore-version
2422
set _TARGETNAME $_CHIPNAME.cpu
@@ -30,7 +28,7 @@ riscv set_ir dmi 0x23
3028

3129
adapter speed 10000
3230

33-
riscv set_prefer_sba on
31+
# riscv set_prefer_sba on # LB: Commented out for git issue #116
3432
gdb_report_data_abort enable
3533
gdb_report_register_access_error enable
3634
gdb_breakpoint_override hard

util/load_demo_system.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [ $1 = "run" ]; then
3535
EXIT_CMD='-c "exit"'
3636
fi
3737

38-
openocd -f $TCL_FILE -c "load_image $2 0x0" \
38+
/tools/openocd/src/openocd -f $TCL_FILE -c "load_image $2 0x0" \
3939
-c "verify_image $2 0x0" \
4040
-c "echo \"Doing reset\"" \
4141
-c "reset $1" \

0 commit comments

Comments
 (0)