Skip to main content

Programmer for FPGA boards using the TinyFPGA USB Bootloader (http://tinyfpga.com).

Project description

TinyFPGA CLI Programmer

GUI

The GUI has been moved to the TinyFPGA Programmer Application repo. However, the tinyprog tool can be used on its own with a command-line interface:

CLI

> tinyprog --help
usage: tinyprog [-h] [-l] [-p PROGRAM] [-u PROGRAM_USERDATA] [-b] [-c COM]
                [-i ID] [-d DEVICE] [-a ADDR] [-m]

optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list connected and active FPGA boards
  -p PROGRAM, --program PROGRAM
                        program FPGA board with the given bitstream
  -u PROGRAM_USERDATA, --program-userdata PROGRAM_USERDATA
                        program FPGA board with the given user data
  -b, --boot            command the FPGA board to exit the bootloader and load
                        the user configuration
  -c COM, --com COM     serial port name
  -i ID, --id ID        FPGA board ID
  -d DEVICE, --device DEVICE
                        device id (vendor:product); default is (1d50:6130)
  -a ADDR, --addr ADDR  force the address to write the bitstream to
  -m, --meta            dump out the metadata for all connected boards in JSON

You can list valid ports with the --list option:

> tinyprog -l

    TinyProg CLI
    ------------
    Using device id 1d50:6130
    Only one board with active bootloader, using it.
    Boards with active bootloaders:

        COM14: TinyFPGA BX 1.0.0
            UUID: e518a627-5626-4f92-91f5-07ed26503bb9
            FPGA: ice40lp8k-cm81

You can use the --com option to specify a specific port. If you don't specify a port, it will use the first one in the list:

tinyprog --com COM14 --program "..\boards\TinyFPGA_BX\fw.bin"

    TinyProg CLI
    ------------
    Using device id 1d50:6130
    Only one board with active bootloader, using it.
    Programming COM14 with ..\boards\TinyFPGA_BX\fw.bin
    Programming at addr 028000
    Waking up SPI flash
    298940 bytes to program
    Erasing: 100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 299k/299k [00:01<00:00, 223kB/s]
    Writing: 100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 299k/299k [00:01<00:00, 235kB/s]
    Reading: 100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 299k/299k [00:00<00:00, 490kB/s]
    Success!

You can use the --id option to specify a device by ID. You can use just the first few characters of the ID:

tinyprog --id e5 --program "..\boards\TinyFPGA_BX\fw.bin"

    TinyProg CLI
    ------------
    Using device id 1d50:6130
    Only one board with active bootloader, using it.
    Programming COM14 with ..\boards\TinyFPGA_BX\fw.bin
    Programming at addr 028000
    Waking up SPI flash
    298940 bytes to program
    Erasing: 100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 299k/299k [00:01<00:00, 223kB/s]
    Writing: 100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 299k/299k [00:01<00:00, 235kB/s]
    Reading: 100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 299k/299k [00:00<00:00, 490kB/s]
    Success!

Testing

Tests have been removed for now pending refactoring of test methodology.

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

tinyprog-1.0.24.dev48.tar.gz (27.5 kB view details)

Uploaded Source

Built Distributions

tinyprog-1.0.24.dev48-py3.6.egg (26.5 kB view details)

Uploaded Source

tinyprog-1.0.24.dev48-py2.py3-none-any.whl (24.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tinyprog-1.0.24.dev48.tar.gz.

File metadata

  • Download URL: tinyprog-1.0.24.dev48.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3

File hashes

Hashes for tinyprog-1.0.24.dev48.tar.gz
Algorithm Hash digest
SHA256 66125567d3e30c362ff48009470cd4d71d84b5acefcecbd281b99a922e1d12ac
MD5 9875a9f9d5befa1ea525dd288a3dbe9a
BLAKE2b-256 e28fe7ae41f7d1d2643a23eb74d28064c45ac814ee84ecf95577cb70d8cb3f48

See more details on using hashes here.

File details

Details for the file tinyprog-1.0.24.dev48-py3.6.egg.

File metadata

  • Download URL: tinyprog-1.0.24.dev48-py3.6.egg
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3

File hashes

Hashes for tinyprog-1.0.24.dev48-py3.6.egg
Algorithm Hash digest
SHA256 b7faed030b9a2b21b9501110c1808bf50ff2c33e70c6a8965403eb1991940fa7
MD5 ea4fd3df06aea4418531873b2885338f
BLAKE2b-256 4e7fd83a00fa7a61abb67e58a90ec41abae1b26d7e67c8358d967ebcb1ef46c9

See more details on using hashes here.

File details

Details for the file tinyprog-1.0.24.dev48-py2.py3-none-any.whl.

File metadata

  • Download URL: tinyprog-1.0.24.dev48-py2.py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.3

File hashes

Hashes for tinyprog-1.0.24.dev48-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 707923ea5af95a231fc2da7534bde9a759892822393246de2e7249e3f53d9fea
MD5 e1cbf1509473db5209fb6263b37f2bf0
BLAKE2b-256 10c8d523cff7fa5f5d26123daceeb1c1a68dd9465178ce5b4e59a181ca0a87e7

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