Git Product home page Git Product logo

vscode-peripheral-inspector's Introduction

Embedded Peripheral Inspector

Standalone SVD Viewer extension extracted from cortex-debug

Specifying SVD Files

The SVD Viewer extension uses System View Description (SVD) files to display information about the selected part, including the Cortex Peripherals view.

Choose one of the following methods to specify your SVD file in your launch.json configuration(s):

Use the CMSIS pack asset service

Set the definitionPath configuration variable to a qualified pack reference in the form <vendor>::<device family pack>@<version> e.g.:

{
    ...
    "definitionPath": "NXP::[email protected]"
    ...
}

If the pack supports multiple devices and/or processors, you will be prompted to select these. Alternatively, set them in your configuration using the optional deviceName and processorName variables:

{
    ...
    "definitionPath": "NXP::[email protected]",
    "deviceName": "K32L3A60VPJ1A",
    "processorName": "cm4"
    ...
}

TIP: The pack reference and device name can be automatically derived if you use the Arm Device Manager extension in VS Code using these commands:

{
    ...
    "definitionPath": "${command:device-manager.getDevicePack}",
    "deviceName": "${command:device-manager.getDeviceName}"
    ...
}

Install a Cortex Debug Support Pack

Find a Cortex Debug Support Pack for your device and install it. You can then specify just the deviceName variable in your launch configuration:

{
    ...
    "deviceName": "STM32F439BI"
    ...
}

Specify the path to your SVD file

You can obtain an SVD file from a CMSIS pack or from your device manufacturer. For example use these instructions for ST devices.

Other vendors may ship SVD files when you install their software or device packs or you could write your own custom SVD file.

Once you have the SVD file, specify the location of it in your launch.json using the definitionPath variable:

{
    ...
    "definitionPath": "${workspaceFolder}/STM32F103.svd"
    ...
}

Extending Peripheral Inspector

It is possible to extend the Peripheral Inspector with new file extension providers in your VSCode extension. This method will provide reading new file formats and load the peripherals information into the Peripheral Inspector.

{
    ...
    "definitionPath": "${workspaceFolder}/STM32F103.<customFileExtension>"
    ...
}

For more details about the implementation, please check the Extending Peripheral Inspector document.

Settings

All variable key names used to extract data from debug launch configurations can be modified. This allows variable name clashes to be avoided as well as the need to duplicate configuration entries.

The following list outlines the setting names and default values:

  • peripheral-inspector.definitionPathConfig - Debug configuration key to use to get the SVD path (default definitionPath)
  • peripheral-inspector.deviceConfig - Debug configuration key to use to get the device name (default: deviceName)
  • peripheral-inspector.processorConfig - Debug configuration key to use to get the processor name (default: processorName)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.