Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.35 KB

README.md

File metadata and controls

19 lines (11 loc) · 1.35 KB

VS Code SVD Peripheral Viewer

Utilizes cortex-debug to view arbitrary SVD files independent of the debugged program. The files are processed (derivedFrom, nested clusters, ...) by the cortex-debug plugin.

Screenshot

Usage

./viewer.sh <path_to_svd_file>

Why?

During the development of SVDSuite, the results were compared with other SVD parsers, as the standard is not always clear and sometimes insufficiently documented. The parser from cortex-debug turned out to be very powerful, as it has more features (e.g. forward referencing for derivedFrom) than ARM's reference parser svdconv.

However, cortex-debug and it's extracted extension Peripheral Viewer both only show information about SVD files while debugging a program.

The shell script in this repository is a wrapper for cortex-debug. It downloads QEMU, installs the cortex-debug plugin in VS Code and modifies VS Code's launch.json for the appropriate SVD path. Afterwards it executes VS Code and QEMU with a dummy binary to allow a debugging session.