Skip to content

Commit 50a5d9a

Browse files
authored
Merge branch 'main' into install-deps
2 parents 6e82109 + 3e286bf commit 50a5d9a

15 files changed

Lines changed: 717 additions & 58 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ jobs:
321321
working-directory: test-coverage
322322

323323
- name: Attach packages
324-
uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
324+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
325325
with:
326326
files: |
327327
**/*.vsix

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ jobs:
5151

5252
- name: Initialize CodeQL
5353
id: initialize
54-
uses: github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
54+
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
5555
with:
5656
queries: security-extended
5757
languages: TypeScript
5858
source-root: src
5959

6060
- name: Autobuild
6161
id: autobuild
62-
uses: github/codeql-action/autobuild@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
62+
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
6363

6464
- name: Perform CodeQL Analysis
6565
id: analyze
66-
uses: github/codeql-action/analyze@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
66+
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ jobs:
8080
# Upload the results to GitHub's code scanning dashboard (optional).
8181
# Commenting out will disable the upload of results to your repo's Code Scanning dashboard
8282
- name: "Upload to code-scanning"
83-
uses: github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v4.34.1
83+
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
8484
with:
8585
sarif_file: results.sarif

.qlty/qlty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ name = "ripgrep" # Fast searching for pattern matching in codebase
6868

6969
[[plugin]]
7070
name = "trivy" # Scans for vulnerabilities in containers and dependencies
71+
version = "0.69.3" # Pinned to secure version
7172

7273
[[plugin]]
7374
name = "trufflehog" # Detects secrets and sensitive data in code

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# Change Log
22

3+
## 1.5.1
4+
5+
- Adds `Fault Reports` to the [Core Peripherals](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#core-peripherals) view.
6+
- Improves expand/collapse behavior with active filter in [Component Viewer](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#component-viewer) and
7+
[Core Peripherals](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#core-peripherals) views.
8+
- Includes updated pyOCD distribution ([pyOCD v0.44.0](https://github.com/pyocd/pyOCD/releases/tag/v0.44.0))
9+
- Uses default debug sequences as defined in the
10+
[Open-CMSIS-Pack specification](https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/debug_description.html#autotoc_md2).
11+
- Adds missing sequence support for flash programming and holding hardware reset.
12+
- Changes strategy of programming multiple flash memories from multiple erase-program-verify sequences per flash memory to a single
13+
erase-program-verify sequence spannig all targeted flash memories.
14+
- Renames RTT channel mode `telnet` to `server`.
15+
- Adds Segger [SystemView](https://www.segger.com/products/development-tools/systemview/) server mode to support direct recording
16+
from pyOCD via IP (TCP/IP connection) for [`run`](https://open-cmsis-pack.github.io/cmsis-toolbox/pyOCD-Debugger/#command-line-invocation)
17+
subcommand.
18+
- Improves robustness and logging of [Segger RTT](https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/)
19+
support.
20+
- See [pyOCD v0.44.0](https://github.com/pyocd/pyOCD/releases/tag/v0.44.0) for a full list of ehancements and bug fixes.
21+
22+
## 1.5.0
23+
24+
- Pre-release with a preview of the new [Core Peripherals](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#core-peripherals) view that lives under
25+
[Trace and Live View](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#trace-and-live-view).
26+
- Early feedback is welcomed, please use [GitHub issues](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/issues/new/choose) to raise enhancement requests or defects.
27+
- Fixes [Component Viewer](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#component-viewer) display and stability issues.
28+
- Included in this extension pre-release:
29+
- [pyOCD v0.43.1](https://github.com/pyocd/pyOCD/releases/tag/v0.43.1)
30+
- [arm-none-eabi-gdb v14.3.1](https://artifacts.tools.arm.com/arm-none-eabi-gdb/14.3.1/)
31+
- Full list of required minimum versions for correct functionality of the CMSIS Debugger v1.5.0 pre-release:
32+
- [Arm CMSIS Solution extension v1.66.0](https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution)
33+
- [CDT GDB Adapter extension v2.7.0](https://marketplace.visualstudio.com/items?itemName=eclipse-cdt.cdt-gdb-vscode)
34+
- [Memory Inspector v1.2.0](https://marketplace.visualstudio.com/items?itemName=eclipse-cdt.memory-inspector)
35+
- [Peripheral Inspector v1.9.0](https://marketplace.visualstudio.com/items?itemName=eclipse-cdt.peripheral-inspector)
36+
- [Serial Monitor v0.13.1](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-serial-monitor)
37+
- [RTOS Views v0.0.14](https://marketplace.visualstudio.com/items?itemName=mcu-debug.rtos-views)
38+
- See [v1.4.1...v1.5.0](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/compare/v1.4.1...v1.5.0) for a full list
39+
of changes that went into this pre-release.
40+
341
## 1.4.1
442

543
- Fixes debugger run control intermittently becoming unresponsive when [Component Viewer](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger?tab=readme-ov-file#component-viewer) is active.

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ Most Arm Cortex-M processors (except Cortex-M0/M0+/M23) include a `DWT->CYCCNT`
277277

278278
The **Trace and Live View**
279279
![Trace and Live view](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/raw/main/images/TraceLiveView.png)
280-
(available from the VS Code Activity Bar) currently contains the [**LIVE WATCH**](#live-watch) and the
281-
[**COMPONENT VIEWER**](#component-viewer) views.
280+
(available from the VS Code Activity Bar) currently contains the [**LIVE WATCH**](#live-watch), the
281+
[**COMPONENT VIEWER**](#component-viewer), and the [**CORE PERIPHERALS**](#core-peripherals) views.
282282

283283
#### LIVE WATCH
284284

@@ -304,6 +304,18 @@ The Component Viewer shows information about:
304304

305305
![Showing software component properties in the COMPONENT VIEWER](https://github.com/Open-CMSIS-Pack/vscode-cmsis-debugger/raw/main/images/component-viewer.png)
306306

307+
#### CORE PERIPHERALS
308+
309+
The **CORE PERIPHERALS** view gives insight into the programming of CPU specific core peripherals.
310+
311+
The Core Peripherals view shows information about the following components if implemented by the CPU:
312+
313+
- Memory Protection Unit
314+
- Nested Vectored Interrupt Controller
315+
- System Config and Control
316+
- System Tick Timer
317+
- Fault Reports
318+
307319
### PERIPHERALS
308320

309321
The **PERIPHERALS** view shows the device peripheral registers and allows to change their values. It uses the CMSIS-SVD files that are provided by silicon vendors and distributed as part of the CMSIS Device Family Packs (DFP).
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2026 Arm Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<component_viewer schemaVersion="0.1" xmlns:xs="https://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd">
18+
<component name="FaultReportsComponent" version="1.0.0"/>
19+
<typedefs>
20+
<typedef name="StandardFaultRegisters_t" size="0x18">
21+
<member name="MMFSR" type="uint8_t" offset="0x00"/>
22+
<member name="BFSR" type="uint8_t" offset="0x01"/>
23+
<member name="UFSR" type="uint16_t" offset="0x02"/>
24+
<member name="HFSR" type="uint32_t" offset="0x04"/>
25+
<member name="DFSR" type="uint32_t" offset="0x08"/>
26+
<member name="MMFAR" type="uint32_t" offset="0x0C"/>
27+
<member name="BFAR" type="uint32_t" offset="0x10"/>
28+
<member name="AFSR" type="uint32_t" offset="0x14"/>
29+
</typedef>
30+
<typedef name="SecureFaultRegisters_t" size="0x08">
31+
<member name="SFSR" type="uint32_t" offset="0x00"/>
32+
<member name="SFAR" type="uint32_t" offset="0x04"/>
33+
</typedef>
34+
</typedefs>
35+
<objects>
36+
<object name="FaultReportsObject">
37+
<read name="StandardFaultRegisters" type="StandardFaultRegisters_t" offset="0xE000ED28"/>
38+
<read name="ID_PFR1" type="uint32_t" offset="0xE000ED44"/>
39+
<var name="ShowSecureFaults" type="uint8_t" value="0"/>
40+
<calc>
41+
ShowSecureFaults=1&amp;&amp;(ID_PFR1&amp;0xF0);
42+
</calc>
43+
<read name="SecureFaultRegisters" cond="ShowSecureFaults" type="SecureFaultRegisters_t" offset="0xE000EDE4"/>
44+
<out name="Fault Reports">
45+
<item property="ID_PFR1" value="%x[ID_PFR1]"/>
46+
<item property="Memory Manage Faults" value="">
47+
<item property="Address (SCB->MMFAR)" value="%x[StandardFaultRegisters.MMFAR]">
48+
</item>
49+
<item property="Status (SCB->CFSR->MMFSR)" value="%x[StandardFaultRegisters.MMFSR]">
50+
<item property="IACCVIOL" value="%d[(StandardFaultRegisters.MMFSR&gt;&gt;0)&amp;0x1]"/>
51+
<item property="DACCVIOL" value="%d[(StandardFaultRegisters.MMFSR&gt;&gt;1)&amp;0x1]"/>
52+
<item property="MUNSTKERR" value="%d[(StandardFaultRegisters.MMFSR&gt;&gt;3)&amp;0x1]"/>
53+
<item property="MSTKERR" value="%d[(StandardFaultRegisters.MMFSR&gt;&gt;4)&amp;0x1]"/>
54+
<item property="MLSPERR" value="%d[(StandardFaultRegisters.MMFSR&gt;&gt;5)&amp;0x1]"/>
55+
<item property="MMFARVALID" value="%d[(StandardFaultRegisters.MMFSR&gt;&gt;7)&amp;0x1]"/>
56+
</item>
57+
</item>
58+
<item property="Bus Faults" value="">
59+
<item property="Address (SCB->BFAR)" value="%x[StandardFaultRegisters.BFAR]">
60+
</item>
61+
<item property="Status (SCB->CFSR->BFSR)" value="%x[StandardFaultRegisters.BFSR]">
62+
<item property="IBUSERR" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;0)&amp;0x1]"/>
63+
<item property="PRECISERR" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;1)&amp;0x1]"/>
64+
<item property="IMPRECISERR" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;2)&amp;0x1]"/>
65+
<item property="UNSTKERR" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;3)&amp;0x1]"/>
66+
<item property="STKERR" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;4)&amp;0x1]"/>
67+
<item property="LSPERR" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;5)&amp;0x1]"/>
68+
<item property="BFARVALID" value="%d[(StandardFaultRegisters.BFSR&gt;&gt;7)&amp;0x1]"/>
69+
</item>
70+
</item>
71+
<item property="Usage Faults" value="">
72+
<item property="Status (SCB->CFSR->UFSR)" value="%x[StandardFaultRegisters.UFSR]">
73+
<item property="UNDEFINSTR" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;0)&amp;0x1]"/>
74+
<item property="INVSTATE" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;1)&amp;0x1]"/>
75+
<item property="INVPC" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;2)&amp;0x1]"/>
76+
<item property="NOCP" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;3)&amp;0x1]"/>
77+
<item property="STKOF" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;4)&amp;0x1]"/>
78+
<item property="UNALIGNED" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;8)&amp;0x1]"/>
79+
<item property="DIVBYZERO" value="%d[(StandardFaultRegisters.UFSR&gt;&gt;9)&amp;0x1]"/>
80+
</item>
81+
</item>
82+
<item property="Hard Faults" value="">
83+
<item property="Status (SCB->HFSR)" value="%x[StandardFaultRegisters.HFSR]">
84+
<item property="VECTTBL" value="%d[(StandardFaultRegisters.HFSR&gt;&gt;1)&amp;0x1]"/>
85+
<item property="FORCED" value="%d[(StandardFaultRegisters.HFSR&gt;&gt;30)&amp;0x1]"/>
86+
<item property="DEBUGEVT" value="%d[(StandardFaultRegisters.HFSR&gt;&gt;31)&amp;0x1]"/>
87+
</item>
88+
</item>
89+
<item property="Debug Faults" value="">
90+
<item property="Status (SCB->DFSR)" value="%x[StandardFaultRegisters.DFSR]">
91+
<item property="HALTED" value="%d[(StandardFaultRegisters.DFSR&gt;&gt;0)&amp;0x1]"/>
92+
<item property="BKPT" value="%d[(StandardFaultRegisters.DFSR&gt;&gt;1)&amp;0x1]"/>
93+
<item property="DWTTRAP" value="%d[(StandardFaultRegisters.DFSR&gt;&gt;2)&amp;0x1]"/>
94+
<item property="VCATCH" value="%d[(StandardFaultRegisters.DFSR&gt;&gt;3)&amp;0x1]"/>
95+
<item property="EXTERNAL" value="%d[(StandardFaultRegisters.DFSR&gt;&gt;4)&amp;0x1]"/>
96+
<item property="PMU" value="%d[(StandardFaultRegisters.DFSR&gt;&gt;5)&amp;0x1]"/>
97+
</item>
98+
</item>
99+
<item property="Auxiliary Faults" value="">
100+
<item property="Status (SCB->AFSR)" value="%x[StandardFaultRegisters.AFSR]">
101+
</item>
102+
</item>
103+
<item property="Secure Faults" cond="ShowSecureFaults" value="">
104+
<item property="Address (SCB->SFAR)" value="%x[SecureFaultRegisters.SFAR]">
105+
</item>
106+
<item property="Status (SCB->CFSR->BFSR)" value="%x[SecureFaultRegisters.SFSR]">
107+
<item property="INVEP" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;0)&amp;0x1]"/>
108+
<item property="INVIS" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;1)&amp;0x1]"/>
109+
<item property="INVER" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;2)&amp;0x1]"/>
110+
<item property="AUVIOL" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;3)&amp;0x1]"/>
111+
<item property="INVTRAN" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;4)&amp;0x1]"/>
112+
<item property="LSPERR" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;5)&amp;0x1]"/>
113+
<item property="SFARVALID" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;6)&amp;0x1]"/>
114+
<item property="LSERR" value="%d[(SecureFaultRegisters.SFSR&gt;&gt;7)&amp;0x1]"/>
115+
</item>
116+
</item>
117+
</out>
118+
</object>
119+
</objects>
120+
</component_viewer>

configs/core-peripherals/core-peripherals-index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ core-peripherals:
99
cpu-type: "*"
1010
- file: System_Tick_Timer.scvd
1111
cpu-type: "*"
12+
- file: Fault_Reports.scvd
13+
cpu-type: "*"

0 commit comments

Comments
 (0)