libftdi@de9f01ece3 | ||
libusb@0929a2b1d1 | ||
openFPGALoader@abda6ed72c | ||
.gitignore | ||
.gitmodules | ||
libftdi_CMakeLists.txt | ||
Makefile | ||
nginx.conf | ||
README.md | ||
wasmFPGALoader.html |
Originally developed by Yimin Gu under contract for JOH.
wasmFPGALoader
openFPGALoader ported to WebAssembly, using WebUSB backend. Program all your FPGA boards from the browser!
Reference article: here
Build
git submodule update --init
make build_libusb
make build_libftdi
make
Host
HTTPS must be used for WebUSB, and two add_headers as in Nginx conf file are necessary for SharedArrayBuffer.
mkdir certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./certs/nginx.key -out ./certs/nginx.crt
docker run --rm -p 443:443 -p 80:80 \
-v $(pwd):/usr/share/nginx/html:ro \
-v $(pwd)/certs:/etc/nginx/ssl \
-v $(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf:ro \
-d nginx
WebUSB
Only Chromium-based browsers are supported. On Windows, .... can be used to replace/install required FTDI drivers.