trabucayre changed the topic of #openFPGALoader to: Universal utility for programming FPGA / Github: https://github.com/trabucayre/openFPGALoader/ Logs: https://libera.irclog.whitequark.org/openFPGALoader
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #openFPGALoader
Guest9 has joined #openFPGALoader
<Guest9> pi@pi:~ $ openFPGALoader -pins=26:24:25:27 -clibgpiod design_1_wrapper.bit
<Guest9> Error parsing options: Argument ‘-pins=26:24:25:27’ starts with a - but has incorrect syntax
<Guest9> does anyone have an idea what i am doing wrong?
<trabucayre> you have -pins instead of --pins (2x'-')
<Guest9> <3
<Guest9> pi@pi:~ $ openFPGALoader --cable=libgpiod --pins=26:24:25:27 design_1_wrapper.bit
<Guest9> Using efinix JTAG interface (no GPIO)
<Guest9> Why does it state that is is using the efinix JTAG interface?
<Guest9> I can see data on the bus though
<trabucayre> it's not clear :)
<trabucayre> you use rpi gpio or efinix interface ?
<trabucayre> if efinix could you point link to this cable
<trabucayre> openFPGALoader support efinix_jtag_ft4232 (ie an ft4232)
<Guest9> oddly enough, i ran the exact command again, and then it worked
<Guest9> pi@pi:~ $ openFPGALoader --cable=libgpiod --pins=26:24:25:27 design_1_wrapper.bit
<Guest9> Using efinix JTAG interface (no GPIO)
<Guest9> Parse file DONE
<Guest9> Load SRAM: [==================================================] 100.00%
<Guest9> Done
<Guest9> pi@pi:~ $ time openFPGALoader --cable=libgpiod --pins=26:24:25:27 design_1_wrapper.bit
<Guest9> Open file DONE
<Guest9> Parse file DONE
<Guest9> now i am trying to figure this one out, apparently i have to name the exact part number ? Can't program SPI flash: missing device-package information
<Guest9> openFPGALoader --cable=libgpiod --pins=26:24:25:27 -f design_1_wrapper.bit --fpga-part xc7a200tfbg484
<Guest9> this looks better :D
<trabucayre> I see: "Using efinix JTAG interface (no GPIO)": this mean openFPGALoader detect an efinix device
<trabucayre> something is not clear to me :)
<trabucayre> but yes to program a xilinx FPGA openFPGALoader needs to load a specific bitstream (a bridge) to access SPI flash
<trabucayre> and it need to have part to know which bitstream to load
<trabucayre> --fpga-part is only required when your board is not listed (otherwise you can use -bxxxx)
<Guest9> its a custom board. the only annoying thing is the speed right now, but its still 2x better than xc3prog
<Guest9> I am quite new to FPGAs, but we are using a trendz module, its a propriertaery form factor, so you jsut get an fpga with alle the required parts on it and  a high speed connector. unfortunately they don't make the bus for active or passive serial accessible. what is the fastest way to flash the SRAM in such a configuration?
<Guest9> we have JTAG powered by a pi and we have PCIe connected, hoping that we can use partial reconfiguration in the future. right now the flashing takes around 7 (volatile) to 9 (non volatile) minutes
<trabucayre> libgpiod bitbang signals: it's slow. To increase speedup you have to move to something like an ft2232
<trabucayre> but it's not clear why a message about efinix is displayed :)
<Guest9> i acutally went through the source to figure it out. I have no idea
<trabucayre> could you try (and copy/paste) openFPGALoader --cable=libgpiod --pins=26:24:25:27 --detect -v
<Guest9> pi@icmmonitor22:~ $ openFPGALoader --cable=libgpiod --pins=26:24:25:27 --detect -v
<Guest9> found 1 devices
<Guest9> index 0:
<Guest9>         idcode 0x3636093
<Guest9>         manufacturer xilinx
<Guest9>         family artix a7 200t
<Guest9>         model xc7a200
<Guest9>         irlength 6
<trabucayre> ok: make sense and no message about efinix