Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
PySWD
/
SWDProtocol.py
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 548 Bytes
master
Breadcrumbs
PySWD
/
SWDProtocol.py
Copy path
Top
File metadata and controls
Code
Blame
19 lines (17 loc) · 548 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Refs:
# "Serial Wire Debug and the CoreSightTM Debug and Trace Architecture"
# Note: ACK is transmitted LSB first, so patterns
# below are reversed comparing to ARMDIv5 diagrams, but matches
# values used in text (sec. 5.4.2 and on)
ACK_OK = 0b001
ACK_WAIT = 0b010
ACK_FAULT = 0b100
# Additional code not defined in ARMDIv5 - when target not present/
# doesn't respond, line is pulled high and that's what we read
ACK_NOTPRESENT = 0b111
# Same note on bit order applies
OP_AP = 0x02
OP_DP = 0x00
OP_READ = 0x04
OP_WRITE = 0x00
OP_PARITY = 0x20
You can’t perform that action at this time.