I think this one has been answered on GitHub, but for future reference. If you have a configuration file (some examples are available
here
), lets say
5a-75b_v8.0_i24o32.json, you can compile this file with:
Code:
litexcnc build_firmware 5a-75b_v8.0_i24o32.json --build - a
When the compilation is successful, a new directory with the compiled firmware will be created. The name of this directory is equal to the name of the configuration file. The
.svf-file required for flashing can be found in the
gateware sub-directory. For this example you can change the directory and then flash the firmware with the following commands:
Code:
cd 5a-75b_v8.0_i24o32/gateware
litexcnc flash_firmware colorlight.svf
The above command is valid when you use a RaspberryPi in combination with the HUB75HAT as a programmer. If you have a different programmer, such as the FT232R, you have to provide the name of the configuration file for OpenOCD, i.e.:
Code:
litexcnc --programmer ft232r flash_firmware colorlight.svf
These commands will flash the firmware only in this session. When you power-cycle the FPGA, the previous program will be loaded again. To make the firmware permanent, one has to flash the NAND-flash on the board. One can use the
--permanent flag:
Code:
litexcnc --permanent flash_firmware colorlight.svf