Skip to content

Standalone OpenOCD and CMSIS-SVD based peripheral register viewer written on Python

License

Notifications You must be signed in to change notification settings

esynr3z/openocd-svd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is openocd-svd?

openocd-svd is a Python-based GUI utility to access peripheral registers of ARM MCUs via combination of OpenOCD and CMSIS-SVD.

gui

Features

  • several ways to open SVD:
    • command line argument
    • standart file dialog
    • special dialog where any SVD from cmsis-svd can be chosen
  • tree view for SVD registers and fields
  • any value can be displayed in hex, dec or bin form (right click to choose)
  • SVD clusters, cluster and register arrays supported (only flat view)
  • SVD enums supported
  • separate tabs for peripherals
  • auto-polling openocd connection every 1s: get current MCU state and PC
  • auto-read option to read registers when MCU halted and PC changed (manual read by default)
  • auto-write option to write register immediately after it changed (manual write by default)

Dependencies

How to use

  • Find and download SVD file with peripheral register structure of your MCU (can be found in Google, vendor site or cmsis-svd repo)
  • Connect MCU with OpenOCD any way you like (GDB, raw scripts, etc)
  • Start openocd-svd and open SVD file (or pass path to SVD as first argument at start)
  • Press Connect to access OpenOCD via telnet interface (localhost 4444)
  • Use View menu to access peripheral registers you want

Example run (SVD path argument is optional):

python3 openocd_svd.py %svd_file_path%

About

Standalone OpenOCD and CMSIS-SVD based peripheral register viewer written on Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published