Content-Length: 270591 | pFad | http://github.com/ccalmels/gdb-dashboard-svd/blob/main/README.md

75 gdb-dashboard-svd/README.md at main · ccalmels/gdb-dashboard-svd · GitHub
Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.89 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.89 KB

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ccalmels/gdb-dashboard-svd/blob/main/README.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy