Open suarezvictor opened 7 months ago
Hi @suarezvictor,
this is interesting but a bit different from the current approach where we have the OpenOCD configuration files in litex_boards/prog: https://github.com/litex-hub/litex-boards/tree/master/litex_boards/prog
If spartan6 programming is currently not supported through OpenOCD in LiteX, we could add a configuration file in litex_board/prog and in the long term we could try to see if generating the configuration file for all the FPGA on the fly could be interesting and then, why not removing the configuration files in LiteX Boards.
I should test that approach, how to select a custom config file? since the pins and bitmasks for XC6 + FTDI chip varies from board to board
I find this code to program Spartan6 devices useful. It's based on OpenOCD, and it works. Can be added here: https://github.com/enjoy-digital/litex/blob/master/litex/build/xilinx/programmer.py Any interest?