Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Tool:SVD-Loader for Ghidra

From ReverseEngineering.wiki
Tool
On this wiki Facts · Code · Notes · Topics

A Ghidra Jython script (leveldown security) that reads a CMSIS-SVD file and creates memory blocks, structures and labels for a microcontroller's peripherals.

Overview

SVD-Loader.py is a Ghidra script: after you load a firmware image for the right processor (usually ARM Cortex-M little endian), run it from the Script Manager, choose the chip's SVD file, and it generates the peripheral memory map, one structure type per peripheral and labels, so register accesses in the decompiler show names. It bundles a fork of the cmsis-svd Python parser ported to Ghidra's Jython.

Installation (from the README)

CodeBrowser > Window > Script Manager > Manage Script Directories > add the folder of the cloned repository; then enable SVD-Loader.py. The script appears in the folder leveldown security.

License

The script is GPLv3; the bundled cmsis_svd directory is Apache-2.0 (README, Licensing section). A GPLv3 script has no effect on the license of your analysis results.

Getting SVDs

The README points to the cmsis-svd collection (over 650 files) and Keil software packs. See Format:CMSIS-SVD.

Code & repositories

  • https://github.com/leveldown-security/SVD-Loader-Ghidra @ 4b21fa54a1f516e25e959939f6e1251263c74725 · license: GPL-3.0-only (declared by the contributor for the files used; GitHub reports GPL-3.0 for the repository)
    Ghidra script that loads a CMSIS-SVD file as memory map and structures (GPLv3; bundled parser Apache-2.0).
    Tested on: source read, not run: read · checked 2026-10-18; last activity 2024-02-01

See also

Platform:ARM Cortex-M