siglabs / jtag

Fork of https://gitlab.com/drom/jtag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version

JTAG / FTDI related JavaScript library and tools.

Installation

Package can be installed from NPM

npm install jtag.ftdi --build-from-source=usb

The package depends on node-usb that depends on libusb library that have to be installed:

Ubuntu

sudo apt-get install build-essential libudev-dev

OpenSuse

sudo zypper install libudev-devel libusb-1_0-devel

SVF

Serial Vector Format (SVF) is a text file format that contains sequence of JTAG operations.

FTDI

FTDI FT232H, FT2232H, FT4232H is a series of USB 2.0 ICs that can be used for high speed serial communication protocols.

Tools

svf2ftdi

./node_modules/.bin/svf2ftdi

Options:
  --file, -f           input SVF file name                              [string]
  --url, -u            input SVF URL                                    [string]
  --serial-number, -n  FTDI serial number                               [string]
  --serial-div, -d     FTDI serial number divisor                       [string]
  --version            Show version number                             [boolean]
  --help               Show help                                       [boolean]

Library

svf-stream

Node.js Writable stream that parses input SVF text while calling JTAG driver.

const svf = require('jtag.ftdi/lib/svf-stream');
const jtag = <JTAG driver>;
const s1 = svf(jtag);
source.pipe(s1);

ftdi-libusb

Node.js component that implements JTAG protocol on FTDI IC over libusb.

const ftdi = require('jtag.ftdi/lib/ftdi-libusb');
const jtag = ftdi(options);
...

ftdi-webusb

WebUSB version of JTAG over FTDI driver.

const ftdi = require('jtag.ftdi/lib/ftdi-webusb');
const jtag = ftdi(options);
...

About

Fork of https://gitlab.com/drom/jtag

License:MIT License


Languages

Language:JavaScript 96.6%Language:Shell 2.6%Language:HTML 0.8%