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
Guest5 has joined #openFPGALoader
Guest5 has quit [Quit: Client closed]
chacalnoir has joined #openFPGALoader
<chacalnoir> Hello! I started using openFPGALoader for Arty a7 100T (really grateful for this software, by the by, as a collaborator of mine does not have access to Vivado). Setting it up on Windows 11 since my collaborator isn't a Linux user. Ran into what appears to be an MSYS2 pathing problem for openFPGALoader. If this is not the right place to ask, please
<chacalnoir> redirect me. Here is what is happening when I try to flash to SPI:
<chacalnoir> $ openFPGALoader.exe -f -b arty_a7_100t UploadFiles/switch_top_arty_a7_rmii.bin
<chacalnoir> write to flash
<chacalnoir> Jtag frequency : requested 10.00MHz  -> real 10.00MHz
<chacalnoir> Open file DONE
<chacalnoir> Parse file DONE
<chacalnoir> use: D:/a/msys64/ucrt64/share/openFPGALoader/spiOverJtag_xc7a100tcsg324.bit.gz
<chacalnoir> Error: fail to open D:/a/msys64/ucrt64/share/openFPGALoader/spiOverJtag_xc7a100tcsg324.bit.gz
<chacalnoir> Error: Failed to program FPGA: Error: fail to open D:/a/msys64/ucrt64/share/openFPGALoader/spiOverJtag_xc7a100tcsg324.bit.gz
<chacalnoir> The weird part is that the correct path is actually /c/msys64/ucrt64/share/openFPGALoader/spiOverJtag_xc7a100tcsg324.bit.gz
<chacalnoir> I also tried export OPENFPGALOADER_SOJ_DIR=/c/msys64/ucrt64/share/openFPGALoader  but the program still tries to use D:/a/....
<chacalnoir> Any idea what is going on? Did some searching, and I am not finding an answer that would get me past this. Pretty sure this is user error, which is why I haven't created an issue report trying to get help. Thank you!
<trabucayre> chacalnoir: I try to search a bit but I am not an windows user
<trabucayre> could you try with --bridge /c/msys64/ucrt64/share/openFPGALoader/spiOverJtag_xc7a100tcsg324.bit.gz
<chacalnoir> --bridge worked! Thank you! I had misread the help and tried --bitstream instead of --bridge. Not sure why the MSYS2 pathing is off, but this solution works. Thank you again!
<trabucayre> Greg Davil has done some fix for windows but since I haven't a windows it's more difficult :)
<chacalnoir> Well, when I have more time, I'll see if I can track down why it's not accepting the default path on Windows. In the meantime, I can add this to the troubleshooting in case it comes up for anyone else.
chacalnoir has quit [Ping timeout: 246 seconds]