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
_whitelogger has joined #openFPGALoader
_whitelogger has joined #openFPGALoader
_whitelogger has joined #openFPGALoader
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #openFPGALoader
<ysionneau> if someone wants to help me with my ecp5 sspi programming issue ... here is a pulseview dump of the spi link ... https://limewire.com/d/8Xdrk#iWBdBVyut2 :)
<ysionneau> this can be opened with pulseview
<ysionneau> (and you can add a spi decoder)
<trabucayre> Have you a link to a board to use for this task?
<ysionneau> I've ordered (and received) 2 assembled pcb
<ysionneau> and it's plugged to an HydraUSB3 which acts as "programmer" : https://github.com/hydrausb3
<ysionneau> the host code I am using to try to program via SPI : https://gitlab.com/yannsionneau/SucreLA/-/blob/main/software/host/program_fpga.c?ref_type=heads
<ysionneau> it's basically sending USB commands to HydraUSB3 to ask it to do SPI read/writes
<ysionneau> and it gives the waves dumped in the shared pulseview session
<ysionneau> the wave "look good" ... but I bet something is wrong but I don't know what...
<ysionneau> and running the program prints: https://pastebin.com/f5MfVKR5
<ysionneau> I think this board can be used to test SSPI configuration : https://www.latticesemi.com/products/developmentboardsandkits/ecp5evaluationboard
<ysionneau> it exposes the CFG[2:0] pins on DIP switch
<ysionneau> as well as SPI pins
csantosb has left #openFPGALoader [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
<trabucayre> I have the lattice ECP5 EVN but not hydra
<trabucayre> In this mode ECP5 act as a "sort-of" SPI device?
<ysionneau> yes, as a SPI slave
<ysionneau> this PDF "explains" how to program it : https://www.latticesemi.com/view_document?document_id=50462
<ysionneau> it gives the flowchart and the commands , and wave schemas
<ysionneau> if you manage to get the SSPI (slave spi) working with ecp5 Evn, with for instance some ftdi that allows doing SPI, I would be interested in having the logic analyzer waves
<ysionneau> so that I can compare with my setup
<ysionneau> and fix my setup :)
<ysionneau> (this way you don't need the HydraUSB3)
<ysionneau> if I understand correctly openFPGALoader already supports --spi programming for some boards?
<ysionneau> but not for LatticeECP5 (only ice40 I think)
<ysionneau> or maybe the --spi is for programming flash companion chips only?
<trabucayre> SPI support is for ice40, gatemate, efinix
<trabucayre> or a SPI Flash directly connected :)
<trabucayre> for ice40 openFPGALoader is able to program the flash or the ice40
<trabucayre> if you are lucky SSPI for ECP5 and ICE40 is more or less the same :)
<ysionneau> I compared a bit instructions between ecp3 and ecp5 and there were differences
<ysionneau> so I'm expecting ice40 to be different, but maybe
<ysionneau> I'll check tomorrow :)
<ysionneau> I've read the iCE40 doc', and the configuration is really different
<ysionneau> there is no "command" you just drive some reset pin, then you send the bitstream data, then wait for DONE=1 and that's it
<ysionneau> it's not that surprising considering Lattice bought the iCE40 products when they acquired SiliconBlue Technologies