Content-Length: 279470 | pFad | http://github.com/ccalmels/gdb-dashboard-svd

BC GitHub - ccalmels/gdb-dashboard-svd: Module for gdb-dashboard that displays SVD provided registers
Skip to content

Module for gdb-dashboard that displays SVD provided registers

License

Notifications You must be signed in to change notification settings

ccalmels/gdb-dashboard-svd

Repository files navigation

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

About

Module for gdb-dashboard that displays SVD provided registers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages









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

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy