Giter Club home page Giter Club logo

gdb-dashboard-svd's Introduction

gdb-dashboard SVD module

Description

A gdb-dashboard module to display SVD registers. example

Unlike other projects, this one adds the ability to load several SVD files at once. Most of the time, vendors' SVD files does not contain ARM base registers that are usefull for debugging : SCB CFSR for example.

Here's the Nordic nRF5340 svd file and you can see that the System Control Block is not present. To address this, just use the SVD from Nordic and the Cortex-M33 SVD form ARM at the same time.

Installation

This project depends on cmsis-svd and requires a least gdb-dashboard version 0.17.

$ pip3 install -r ./requirements.txt

Then simply add gdb-dashboad-svd.py in your ~/.gdbinit.d/ directory.

Usage

All commands benefit from a usefull completion.

Add some SVD files

dashboard svd load ./Cortex-M33.svd ./nrf5340_application.svd

Add some registers to display

dashboard svd /_t add SCB CFSR
dashboard svd /a add SCB BFAR

The display format depends on the option:

  • a for address
  • u for decimal
  • x for hexadecimal
  • t for binary
  • _t for binary with separator

Remove some registers

dashboard svd remove SCB CFSR_UFSR_BFSR_MMFSR
dashboard svd remove SCB BFAR

Clear all registers

dashboard svd clear

Standalone commmands

This module also creates two gdb commands:

  • svd info [<peripheral> [<register>]]
  • svd get [/auxt_t] <peripheral> <register>

Example:

>>> svd info SCB HFSR
HFSR addr: 0xe000ed2c (access: read-write)
        DEBUGEVT        [31] (DEBUGEVT)
        FORCED  [30] (Forced)
        VECTTBL [1] (VECTTBL)
>>> svd get /_t SCB HFSR
0xe000ed2c:     0b0000_0000_0000_0000_0000_0000_0000_0000

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.