CLion 2019.2 Help

Peripheral view

Peripheral view is available during debugging on ARM devices with either Embedded GDB Server or OpenOCD Download & Run configuration.

Configure Peripheral View

  1. Set up an Embedded GDB Server or OpenOCD Download & Run configuration and start the debug icons actions startDebugger svg session.

  2. In the Debug tool window, open the Peripherals tab:

    initial state of the Peripherals tab

  3. Click Load .svd file. You can load several .svd files at once and select the active peripherals you need from each of them on the next step.

    CMSIS-SVD (CMSIS System View Description) are standard ARM files that contain peripheral registers definitions. MCU vendors publish SVD files along with the chip documentation; you can also find them inside various SDKs and libraries or write your own.

  4. Select the active peripherals or particular registers to be shown:

    select peripherals to view

  5. The selected registers are displayed in the tab (currently, the values are read-only). You can switch between Decimal, Octal, Hex, and Binary views using the context menu:

    peripherals viewing mode

    The Stop refreshing button stops the on-the-fly updates of the peripherals on stepping. It can be useful when the operation is time-consuming. Click Refresh to trigger the update manually.

    The Configure button opens the Select Active Peripherals dialog.

Save the Peripheral view data

Export as CSV to Clipboard and Open as CSV in Editor buttons of the Peripherals tab can be useful if you want to compare peripherals from several runs or save it for future investigation.

Peripheral view data is stored in .csv files in the Scratches directory. To access scratch files, open Scratches and Consoles in the project tree and expand the Scratches node.

To compare two files, select them in the project tree and call Compare files from the context menu, or press Ctrl+D.

You can also edit .csv files as tables: right-click inside a file and choose Edit as table. For readability, select the First row is header checkbox:

editing peripheral view data as table

Last modified: 22 August 2019