Skip to content

Commit b2a8c9f

Browse files
committed
Update to OpenOCD v2.7
1 parent 6b4e59c commit b2a8c9f

File tree

968 files changed

+62035
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

968 files changed

+62035
-4
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
## Build
3+
4+
The scripts used to build this distribution are in:
5+
6+
- `distro-info/scripts`
7+
8+
For the prerequisites and more details on the build procedure and source code, please contact the following e-mail address: support@mounriver.com
9+
10+
11+
## Documentation
12+
13+
The original documentation is available in the `share/doc` folder.
14+
15+

bin/MRSRemoteAssistant.chipID

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

bin/openocd

17.2 KB
Binary file not shown.

bin/openocd_jlink.cfg

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
adapter_khz 1000
2+
reset_config srst_only
3+
adapter_nsrst_assert_width 100
4+
5+
interface jlink
6+
jlink usb 0
7+
8+
transport select jtag
9+
10+
set _CHIPNAME riscv
11+
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1000563d
12+
13+
set _TARGETNAME $_CHIPNAME.cpu
14+
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
15+
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 20480 -work-area-backup 0
16+
17+
18+
# Work-area is a space in RAM used for flash programming
19+
if { [info exists WORKAREASIZE] } {
20+
set _WORKAREASIZE $WORKAREASIZE
21+
} else {
22+
set _WORKAREASIZE 0x5000
23+
}
24+
25+
# Allow overriding the Flash bank size
26+
if { [info exists FLASH_SIZE] } {
27+
set _FLASH_SIZE $FLASH_SIZE
28+
} else {
29+
# autodetect size
30+
set _FLASH_SIZE 0
31+
}
32+
33+
# flash size will be probed
34+
set _FLASHNAME $_CHIPNAME.flash
35+
36+
flash bank $_FLASHNAME gd32vf103 0x08000000 0 0 0 $_TARGETNAME
37+
riscv set_reset_timeout_sec 1
38+
init
39+
40+
halt
41+
42+

bin/wch-dual-core.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#interface wlink
2+
adapter driver wlinke
3+
adapter speed 6000
4+
transport select sdi
5+
6+
wlink_set_address 0x00000000
7+
set _CHIPNAME wch_riscv
8+
sdi newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x00001
9+
10+
set _TARGETNAME $_CHIPNAME.cpu
11+
12+
13+
target create $_TARGETNAME.0 wch_riscv -chain-position $_TARGETNAME -coreid 0
14+
$_TARGETNAME.0 configure -event reset-init {
15+
16+
echo "Core 0 reset initialized."
17+
}
18+
$_TARGETNAME.0 configure -gdb-port 3333
19+
20+
21+
target create $_TARGETNAME.1 wch_riscv -chain-position $_TARGETNAME -coreid 1
22+
$_TARGETNAME.1 configure -event reset-init {
23+
echo "Core 1 reset initialized."
24+
}
25+
$_TARGETNAME.1 configure -gdb-port 3334
26+
27+
28+
29+
30+
#target create $_TARGETNAME.0 wch_riscv -chain-position $_TARGETNAME
31+
32+
33+
$_TARGETNAME.0 configure -work-area-phys 0x20100000 -work-area-size 10000 -work-area-backup 1
34+
set _FLASHNAME $_CHIPNAME.flash0
35+
36+
flash bank $_FLASHNAME wch_riscv 0x00000000 0 0 0 $_TARGETNAME.0
37+
38+
$_TARGETNAME.1 configure -work-area-phys 0x20102800 -work-area-size 10000 -work-area-backup 1
39+
set _FLASHNAME $_CHIPNAME.flash1
40+
41+
flash bank $_FLASHNAME wch_riscv 0x00005000 0 0 0 $_TARGETNAME.1
42+
43+
44+
45+
echo "Ready for Remote Connections"

contrib/60-openocd.rules

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# Copy this file to /etc/udev/rules.d/
2+
# If rules fail to reload automatically, you can refresh udev rules
3+
# with the command "udevadm control --reload"
4+
5+
ACTION!="add|change", GOTO="openocd_rules_end"
6+
SUBSYSTEM!="usb|tty|hidraw", GOTO="openocd_rules_end"
7+
8+
# [GNU MCU Eclipse] -----------------------------------------------------------
9+
# To simplify access, the access rights were changed from:
10+
# MODE="660", GROUP="plugdev", TAG+="uaccess"
11+
# to:
12+
# MODE="666"
13+
# -----------------------------------------------------------------------------
14+
15+
# Please keep this list sorted by VID:PID
16+
17+
# opendous and estick
18+
ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="204f", MODE="666"
19+
20+
# Original FT232/FT245 VID:PID
21+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="666"
22+
23+
# Original FT2232 VID:PID
24+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="666"
25+
26+
# Original FT4232 VID:PID
27+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6011", MODE="666"
28+
29+
# Original FT232H VID:PID
30+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", MODE="666"
31+
32+
# DISTORTEC JTAG-lock-pick Tiny 2
33+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8220", MODE="666"
34+
35+
# TUMPA, TUMPA Lite
36+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8a98", MODE="666"
37+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8a99", MODE="666"
38+
39+
# XDS100v2
40+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="a6d0", MODE="666"
41+
42+
# Xverve Signalyzer Tool (DT-USB-ST), Signalyzer LITE (DT-USB-SLITE)
43+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bca0", MODE="666"
44+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bca1", MODE="666"
45+
46+
# TI/Luminary Stellaris Evaluation Board FTDI (several)
47+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bcd9", MODE="666"
48+
49+
# TI/Luminary Stellaris In-Circuit Debug Interface FTDI (ICDI) Board
50+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bcda", MODE="666"
51+
52+
# egnite Turtelizer 2
53+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="bdc8", MODE="666"
54+
55+
# Section5 ICEbear
56+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="c140", MODE="666"
57+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="c141", MODE="666"
58+
59+
# Amontec JTAGkey and JTAGkey-tiny
60+
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="cff8", MODE="666"
61+
62+
# TI ICDI
63+
ATTRS{idVendor}=="0451", ATTRS{idProduct}=="c32a", MODE="666"
64+
65+
# STMicroelectronics ST-LINK V1
66+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3744", MODE="666"
67+
68+
# STMicroelectronics ST-LINK/V2
69+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE="666"
70+
71+
# STMicroelectronics ST-LINK/V2.1
72+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", MODE="666"
73+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3752", MODE="666"
74+
75+
# STMicroelectronics STLINK-V3
76+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374d", MODE="666"
77+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374e", MODE="666"
78+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374f", MODE="666"
79+
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3753", MODE="666"
80+
81+
# Cypress KitProg in KitProg mode
82+
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="f139", MODE="666"
83+
84+
# Cypress KitProg in CMSIS-DAP mode
85+
ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="f138", MODE="666"
86+
87+
# Hilscher NXHX Boards
88+
ATTRS{idVendor}=="0640", ATTRS{idProduct}=="0028", MODE="666"
89+
90+
# Hitex STR9-comStick
91+
ATTRS{idVendor}=="0640", ATTRS{idProduct}=="002c", MODE="666"
92+
93+
# Hitex STM32-PerformanceStick
94+
ATTRS{idVendor}=="0640", ATTRS{idProduct}=="002d", MODE="666"
95+
96+
# Altera USB Blaster
97+
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="666"
98+
99+
# Amontec JTAGkey-HiSpeed
100+
ATTRS{idVendor}=="0fbb", ATTRS{idProduct}=="1000", MODE="666"
101+
102+
# SEGGER J-Link
103+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0101", MODE="666"
104+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0102", MODE="666"
105+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0103", MODE="666"
106+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0104", MODE="666"
107+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0105", MODE="666"
108+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0107", MODE="666"
109+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0108", MODE="666"
110+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1010", MODE="666"
111+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1011", MODE="666"
112+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1012", MODE="666"
113+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1013", MODE="666"
114+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1014", MODE="666"
115+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1015", MODE="666"
116+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1016", MODE="666"
117+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1017", MODE="666"
118+
ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1018", MODE="666"
119+
120+
# Raisonance RLink
121+
ATTRS{idVendor}=="138e", ATTRS{idProduct}=="9000", MODE="666"
122+
123+
# Debug Board for Neo1973
124+
ATTRS{idVendor}=="1457", ATTRS{idProduct}=="5118", MODE="666"
125+
126+
# Olimex ARM-USB-OCD
127+
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="0003", MODE="666"
128+
129+
# Olimex ARM-USB-OCD-TINY
130+
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="0004", MODE="666"
131+
132+
# Olimex ARM-JTAG-EW
133+
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="001e", MODE="666"
134+
135+
# Olimex ARM-USB-OCD-TINY-H
136+
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002a", MODE="666"
137+
138+
# Olimex ARM-USB-OCD-H
139+
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002b", MODE="666"
140+
141+
# USBprog with OpenOCD firmware
142+
ATTRS{idVendor}=="1781", ATTRS{idProduct}=="0c63", MODE="666"
143+
144+
# TI/Luminary Stellaris In-Circuit Debug Interface (ICDI) Board
145+
ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00fd", MODE="666"
146+
147+
# TI XDS110 Debug Probe (Launchpads and Standalone)
148+
ATTRS{idVendor}=="0451", ATTRS{idProduct}=="bef3", MODE="666"
149+
150+
# TI Tiva-based ICDI and XDS110 probes in DFU mode
151+
ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00ff", MODE="666"
152+
153+
# Ambiq Micro EVK and Debug boards.
154+
ATTRS{idVendor}=="2aec", ATTRS{idProduct}=="6010", MODE="666"
155+
ATTRS{idVendor}=="2aec", ATTRS{idProduct}=="6011", MODE="666"
156+
ATTRS{idVendor}=="2aec", ATTRS{idProduct}=="1106", MODE="666"
157+
158+
# Marvell Sheevaplug
159+
ATTRS{idVendor}=="9e88", ATTRS{idProduct}=="9e8f", MODE="666"
160+
161+
# Keil Software, Inc. ULink
162+
ATTRS{idVendor}=="c251", ATTRS{idProduct}=="2710", MODE="666"
163+
164+
# CMSIS-DAP compatible adapters
165+
ATTRS{product}=="*CMSIS-DAP*", MODE="666"
166+
167+
LABEL="openocd_rules_end"

contrib/libdcc/README

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
This code is an example of using the openocd debug message system.
2+
3+
Before the message output is seen in the debug window, the functionality
4+
will need enabling:
5+
6+
From the gdb prompt:
7+
monitor target_request debugmsgs enable
8+
monitor trace point 1
9+
10+
From the Telnet prompt:
11+
target_request debugmsgs enable
12+
trace point 1
13+
14+
To see how many times the trace point was hit:
15+
(monitor) trace point 1
16+
17+
Spen
18+
spen@spen-soft.co.uk
19+

0 commit comments

Comments
 (0)