Skip to main content

Python API for D-Bug12 compatible boards

Project description

d-bug12 is both a Python api, and a command line interface for the Dbug-12 program flashed in Motorola's HC12 chips

d-bug12

Installation

pip install dbug12

You should have Python's user base directory in your path for the CLI to work properly. In case it's not, use python -m site --user-base to get it and add it to your system path.

From source

pip install dbug12

Manually

Although the recommended way to install is using Python's package installer, there is an installation script (Linux only) in case you don't have pip set up.

sudo ./install

CLI usage

dbug12 [flags] <command>
usage: dbug12 [-h] [-p PORT] <command> ...

positional arguments:
  <command>             dbug12 <command> -h will show further usage and
                        arguments, if any. Available commands are:

    load                Load a compiled program into memory
    run                 Start execution from a specific point of memory
    monitor             Spawns a terminal that directly communicates with the
                        board
    get-registers       Display CPU registers
    erase-memory        Erase a section of memory
    get-memory          Display a section of memory

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  serial communication port accessed by the board.
                        Default: "/dev/ttyUSB0"

Examples

Examples for the Python api can be found in examples.

Assembling

A command line implementation of the HC12 assembler for Linux can be found at 68hc12-linux.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbug12-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file dbug12-0.1.1.tar.gz.

File metadata

  • Download URL: dbug12-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/2.7.16

File hashes

Hashes for dbug12-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c78b44b95978ffb6852eb62739880d0aabe5f3b0114f3cba44fc8465775d9f19
MD5 92bcf53e8a023ab59e56288e2f9e5754
BLAKE2b-256 be870af3780b3618d449f3a2b1957f6503d36d1448eb99241268ba90e2ff2d93

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page