q3k / chubby75

Linsn RV901T HUB75 LED "Receiver Card" Reverse Engineering
Creative Commons Zero v1.0 Universal
537 stars 103 forks source link

Uploading bitstreams into 5A-75B V8.2 SPI Flash #117

Closed tvlad1234 closed 9 months ago

tvlad1234 commented 9 months ago

I just got my 5A-75B V8.2 and successfully swapped the output drivers on the right side of the board. I am able to generate bitstreams from VHDL designs and configure the FPGA over JTAG, with a CMSIS-DAP probe. My question is, is it possible to write custom bitstreams to the SPI flash and have it configure the FPGA on powerup?

tomverbeure commented 9 months ago

Yes, it's easy to.

I have 2 rules in my Makefile: upload is to load the bitstream over JTAG, and flash is to program the bitstream into the spi flash.

upload: top.bit
    openfpgaloader  --vid 0x0403 --pid 0x6014 top.bit

flash: top.bit
    openfpgaloader  --vid 0x0403 --pid 0x6014 --unprotect-flash --write-flash top.bit

You'll obviously have to change the vid and pid to whichever device you're using.

I have a V6 board, but I don't see why it wouldn't work on a later version.

tvlad1234 commented 9 months ago

I've just tried it, can confirm that it works!