| bin | ||
| images | ||
| serial | ||
| test | ||
| verilog | ||
| .gitignore | ||
| README.md | ||
| sfdp.bin | ||
SPIspy for Flashkeeper
This is a version of SPIspy for the Flashkeeper SPI Emulator board (FSE).
Setup Instructions
Build and install icesprog and its associated udev rules (see https://github.com/wuxx/icesugar/tree/master/tools/src).
Install the FPGA toolchain dependencies:
sudo apt install nextpnr-ecp5-qt yosys fpga-trellis
To build the SPIspy bitstream:
cd verilog/
make
To flash to your Flashkeeper SPI Emulator, connect a USB-C cable to the second USB-C port (the one on the iCESugar-Pro SoM, not the one on the base board - you may need to release the SoM from its SODIMM slot to do this), then flash the image using icesprog.
cd verilog/
icesprog spispy.bit
Now reinstall the SoM, connect your USB-C cable to the other USB-C port (the one on the baseboard), and confirm you can see an FPGA firmware version:
$ bin/spispy --verbose
Version: '11111111'
Testing
Connect a pico-serprog to the FSE board via the Clip header, as you would connect a chip clip. Then run the test script to write random data into the SPIspy RAM over USB, read it back using the pico-serprog, and confirm it matches.
cd test/
./test.sh