Programmer for FPGA boards using the TinyFPGA USB Bootloader
Project description
Home-page: https://github.com/tinyfpga/TinyFPGA-Bootloader/
Author: Luke Valenty
Author-email: luke@tinyfpga.com
License: GPLv3+
Project-URL: Documentation, https://packaging.python.org/tutorials/distributing-packages/
Project-URL: Source, https://github.com/tinyfpga/TinyFPGA-Bootloader/tree/master/programmer
Project-URL: Tracker, https://github.com/tinyfpga/TinyFPGA-Bootloader/issues
Description: # Programmer
## GUI
The GUI has been moved to the [TinyFPGA Programmer Application repo][gui-repo].
However, the `tinyprog` tool can be used on its own with a command-line
interface:
[gui-repo]: https://github.com/tinyfpga/TinyFPGA-Programmer-Application
## 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.
Keywords: fpga,tinyfpga,programmer,lattice,ice40
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Author: Luke Valenty
Author-email: luke@tinyfpga.com
License: GPLv3+
Project-URL: Documentation, https://packaging.python.org/tutorials/distributing-packages/
Project-URL: Source, https://github.com/tinyfpga/TinyFPGA-Bootloader/tree/master/programmer
Project-URL: Tracker, https://github.com/tinyfpga/TinyFPGA-Bootloader/issues
Description: # Programmer
## GUI
The GUI has been moved to the [TinyFPGA Programmer Application repo][gui-repo].
However, the `tinyprog` tool can be used on its own with a command-line
interface:
[gui-repo]: https://github.com/tinyfpga/TinyFPGA-Programmer-Application
## 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.
Keywords: fpga,tinyfpga,programmer,lattice,ice40
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
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
tinyprog-1.0.24.dev16.tar.gz
(26.8 kB
view details)
Built Distributions
tinyprog-1.0.24.dev16-py3.6.egg
(25.4 kB
view details)
File details
Details for the file tinyprog-1.0.24.dev16.tar.gz
.
File metadata
- Download URL: tinyprog-1.0.24.dev16.tar.gz
- Upload date:
- Size: 26.8 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 | c8ee35dbf56c81fd88f8f48bb772ce01505f16a2d109664e6544eb73548d291e |
|
MD5 | ce5882032eea465a8bf42b26a114566f |
|
BLAKE2b-256 | c6c04b6edaac32a35ae5b1e88c72a8857b682ff05debb41e75551527df0b7ed4 |
File details
Details for the file tinyprog-1.0.24.dev16-py3.6.egg
.
File metadata
- Download URL: tinyprog-1.0.24.dev16-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 | dd09d2ad95a9ba411cff551f3d329baa15a809be4f1921b9f3a6036b7fded78c |
|
MD5 | fab4fd2e1f00cd35edc284bd274ed8ae |
|
BLAKE2b-256 | ba7558db812d49fac400295f4e92f736bb4f763d87c25487401eae5c1dffdfcb |
File details
Details for the file tinyprog-1.0.24.dev16-py2.py3-none-any.whl
.
File metadata
- Download URL: tinyprog-1.0.24.dev16-py2.py3-none-any.whl
- Upload date:
- Size: 24.1 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 | 600f8f8f2068acab84783d65a4e997a64c5f992d6a2df27faf059fcc4813558a |
|
MD5 | 8c553f316a9df156042b620a8033a84b |
|
BLAKE2b-256 | ca99f6e916b230d3f45c742dcbbebd63f186d2209d95fe7fa2c426a797b7a3e9 |