GithubHelp home page GithubHelp logo

isabella232 / openocdcfg-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sifive/openocdcfg-generator

0.0 0.0 0.0 53 KB

OpenOCD Configuration Generator for Freedom Metal

License: Apache License 2.0

Python 90.72% Makefile 9.28%

openocdcfg-generator's Introduction

openocdcfg-generator

This is a python tool based on pydevicetree (GitHub/PyPI) which generates OpenOCD Configuration Files for Freedom Metal applications.

Usage

usage: generate_openocdcfg.py [-h] -d DTS -b BOARD [-o OUTPUT] [-p PROTOCOL]
                              [-t]

Generate OpenOCD configuration files from Devicetrees

optional arguments:
  -h, --help            show this help message and exit
  -d DTS, --dts DTS     The path to the Devicetree for the target
  -b BOARD, --board BOARD
                        The board of the target to generate an OpenOCD config
                        for. Supported boards include: arty, vc707, hifive
  -o OUTPUT, --output OUTPUT
                        The path of the linker script file to output
  -p PROTOCOL, --protocol PROTOCOL
                        Supported protocols include: jtag, cjtag
  -t, --tunnel          Enable JTAG tunneling (Xilinx BSCAN)

Required Devicetree Properties

This linker script generator expects that the Devicetree has annotated the desired memory map for the resulting linker script through properties in the /chosen node. Those properties are:

  • metal,entry, which describes which memory region read-only data should be placed in
  • metal,ram, which describes which memory region should be treated as ram

Each of these properties is a prop-encoded-array with the following triplet of values:

  1. A reference to a node which describes memory with the reg property
  2. An integer describing which 0-indexed tuple in the reg property should be used
  3. An integer describing the offset into the memory region described by the requested reg tuple

For example, the chosen node may include the following properties:

chosen {
    metal,entry = <&testram0 0 0>;
    metal,ram = <&L28 0 0>;
};

Copyright and License

Copyright (c) 2020 SiFive Inc.

The contents of this repository are distributed according to the terms described in the LICENSE file.

openocdcfg-generator's People

Contributors

bsousi5 avatar erikdanie avatar mmjconolly avatar nategraff-sifive avatar paul-walmsley-sifive avatar richardxia avatar sifivekevin avatar terpstra avatar

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.