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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file tinyprog-1.0.24.dev20.tar.gz
.
File metadata
- Download URL: tinyprog-1.0.24.dev20.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d3be08f7a70ee6a8b792a07d40aab972c47630cec5f07b90c5a443e3023202c |
|
MD5 | 0e5306564d0f6855d7bc71552aabd928 |
|
BLAKE2b-256 | ad73aea49a8cfc1d5f52d9805f73721a7879b7ddaa4f89a7c4cce28e3587fb22 |
File details
Details for the file tinyprog-1.0.24.dev20-py3.6.egg
.
File metadata
- Download URL: tinyprog-1.0.24.dev20-py3.6.egg
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf9fef566f48a6344f3cf1b6dbfcc239737efa3bbe61b75d3a27fad32c7b633e |
|
MD5 | d6de60dfa9a4f803303f4ea119bd35a0 |
|
BLAKE2b-256 | 38bd266ba12c698f7b5f8e1d78595efd6642294f92c9ef59972e29a51fe70235 |
File details
Details for the file tinyprog-1.0.24.dev20-py2.py3-none-any.whl
.
File metadata
- Download URL: tinyprog-1.0.24.dev20-py2.py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f4c5b2568947d8e4624f5508b7f50319a88f483c957a1b33a275fb635d57fd |
|
MD5 | 58e8e4eed52f9004ffdafee86b791b77 |
|
BLAKE2b-256 | 6ce7a65fd6f16de67fcc5383a8e013650c2f64d646bf1ae39430c8b555ac3936 |