Closed machdyne closed 11 months ago
In fact I have never tried to program my gatemate with an external interface. There is no real reason why it's not working. But by re-reading code, some predicate exists to have access to reset, done, fail and oen (and SPI access is ftdi dependant :(). I suspect something around trying to access unsupported/unavailable feature may be a cause of these segfaut (but it's maybe not the full answer since sometime your able to program).
I have to see if it's possible, with my eval board to bypass onboard jtag interface to use external one.
Note: I have noticed by using picorv32 jtag is no more available when p_r
is used with -uCIO
so direct access to the SPI may be required (or a way to avoid self programming at start time).
That's interesting, as I don't see such errors with my setup (consisting of Raspberry Pi Pico + dirtyJtag and evalboard). It's true that FTDI-related routines are called by mistake. They control output enable, reset and read the configuration status via the FTDI GPIOs. Any alternatives such as dirtyJtag were not intended so far, but I like it. I am happy to adjust the routine, if you don't mind? Perhaps this will already solve the segfault problem.
@machdyne could you try https://github.com/trabucayre/openFPGALoader/commit/18056180a8c5a9d3c944b203a5bdf5d3dfed9732?
Just clone into my repo:
$ git clone --branch gatemate-dirtyjtag https://github.com/pu-cc/openFPGALoader.git
Thanks!
@pu-cc Thanks. I tried that branch with several different bitstreams and I'm no longer seeing any segfaults.
@pu-cc Thanks for this quick fix !
Hello. I'm using openFPGALoader with pico-dirtyJtag to program GateMate FPGAs. I'm not sure if this is supposed to work, but it is working at least sometimes.
However, it seems that with some larger bitstreams there is a segfault:
I'm also sometimes seeing segfaults in libusb_exit. And sometimes using --verbose changes the behavior, as seen below.
Any ideas?