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> trabucayre: I'm back from my family commitment. I will try the MachXO2 PR today.
<trabucayre> great!
<cr1901> trabucayre: You are GwenhaelG on Cohost? Once I test/confirm the PR works, I plan to make a post about MachXO2 improvements and want to credit you
<cr1901> (or I'll RT/boost your own posts :P)
<trabucayre> yep
<trabucayre> don't hesitate to post :)
<trabucayre> I usually forget to multipost things: it's a bit boring to have to copy/paste message :(
<trabucayre> One thing I haven't checked: time to flash. Seems faster but it's subjective
<cr1901> It's negligible for the lcmxo2-1200hc IMO
<trabucayre> maybe. But jedec needs more trick to be parsed
<cr1901> Of course there's no JEDEC ID because I'm trying to program the internal flash :D
<trabucayre> You hard with me: I was thinking to going to sleep :)
<trabucayre> The behavior isn't good: It try to access to an external flash
<cr1901> It shouldn't be accessing an external flash unless I pass a --external-flash flag
<trabucayre> fpga-part is not required: it's only mandatory for xilinx and altera
<trabucayre> --external-flash is for gowin litlebee :)
<cr1901> same error
<cr1901> when I remove --fpga-part
<cr1901> maybe fix this tomorrow
<trabucayre> if you provides .bit and if idcode is for machxo2 this https://github.com/trabucayre/openFPGALoader/blob/master/src/lattice.cpp#L700
<trabucayre> must be true: no external flash access
<cr1901> I was using the wrong openfpgaloader binary
<cr1901> sorry
<cr1901> presumably, if we wanted to support external flash for machxo2, a proxy would have to be built/used
<trabucayre> if there is nothing like lattice epc5/nexus, gowin or anlogic -> yep
<cr1901> IIRC lattice ecp5 jtag has special commands to program an external flash
<cr1901> These _probably_ work for machxo2, but I've never tested them
<cr1901> But the --external-flash arg should prob be reused for machxo32
<cr1901> machxo2*
<trabucayre> exactly
<cr1901> Anyways, I'm using the correct binary now and machxo2 internal flash programming w/ .bit files works
<cr1901> external flash (and user flash) can be saved for another day
<trabucayre> gowin littlebee have internal flash but it's possible to access with a bitbanging mode to an external flash
<trabucayre> \o/
<trabucayre> I'm agree. a new spiOverJtag's variant may be required to external flash (if nothing is available onchip)
<cr1901> machxo2 has a user flash section as well _inside the internal flash_. I'd love for that to be supported one day, even if via a proxy bitstream
<cr1901> But that can be another day.
<trabucayre> I have to check but with jed all section are covered. It's maybe possible to adapt a bit the code to allows using raw binary file for write this section
<trabucayre> But I'm sorry I need to sleep: bad week with lot of difficulties to sleep
<cr1901> no worries, sleep well
gordea has joined #openFPGALoader