During a debugging session, you can monitor the registers and peripherals defined in the .svd file. The Peripheral View is applicable to two configuration types: Embedded GDB Server and OpenOCD Download & Run.
Configure the Peripheral View by setting up the Embedded GDB Server or OpenOCD Download & Run configuration, and start the debugging session.
In the debugging tool window, open the Peripheral tab:
👇 Click to Claim 👇
👉 C Language Knowledge Resource Collection
Click to load the .svd file. You can load multiple .svd files at once and then select the active peripherals you need from each file in the next step. CMSIS-SVD (CMSIS System View Description) is a standard ARM file that contains the definitions of peripheral registers. MCU vendors release SVD files along with chip documentation; you can also find them in various SDKs and libraries or write them yourself.
Select the active peripherals or specific registers to display:
The selected registers will be shown in the tab (currently, the values are read-only). You can use the context menu to switch between decimal, octal, hexadecimal, and binary views:
The "Stop Refresh" button will stop the immediate updates of peripherals during single-step execution. This feature is very useful when operations take a long time. Click "Refresh" to manually trigger updates.
The "Configure" button opens the "Select Active Peripherals" dialog.
Save Peripheral View data with the "Export as CSV to Clipboard" and "Open in Editor as CSV" buttons located in the Peripheral tab, which is very useful when you want to compare peripherals across several runs or save data for future investigations. Peripheral View data is stored in .csv files in the Scratches directory. To access the scratch files, open Scratches and Consoles in the project tree and expand the Scratches node.
To compare two files, you can select them in the project tree and call Compare Files from the context menu or press Ctrl+D.
You can also edit .csv files in table format: right-click inside the file and select Edit as Table. For readability, check the "First row is header" checkbox:
Popular Recommendations
-
Not glamorous, yet very profitable jobs…
-
Candidates from big companies are indeed a bit strong, but I still rejected him~
-
Essential skills for working in state-owned enterprises…