Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openFPGALoader in macOS M1 version has a bad path hardcoded (?) for SPI-over-JTAG flash programming #62

Closed
aspdigital opened this issue Apr 17, 2023 · 2 comments

Comments

@aspdigital
Copy link

aspdigital commented Apr 17, 2023

I'm working with a Spartan-7 device (for the time being on an Arty board), with an SPI flash for configuration. My specific version of the oss-cad-suite-build is 20230211, and I see there were issues building it later.

When I do

% openFPGALoader -b arty_s7_25 -f test_design.bit

I get an error when it tries to load the SPI-programmer bit file:

write to flash
Jtag frequency : requested 6.00MHz   -> real 6.00MHz  
Open file DONE
Parse file DONE
use: /yosyshq/share/openFPGALoader/spiOverJtag_xc7s25csga324.bit.gz
Error: fail to open /yosyshq/share/openFPGALoader/spiOverJtag_xc7s25csga324.bit.gz
Error: Failed to program FPGA: Error: fail to open /yosyshq/share/openFPGALoader/spiOverJtag_xc7s25csga324.bit.gz

and it's obviously because I don't have the /yosyshq/share/openFPGALoader path.

The loader binary archive is in /Applications/oss-cad-suite/share/openFPGALoader

Is this an issue with how you're building this tool? Anything special I can do, short of downloading the source for it and building it separately?

@WillGreen
Copy link
Contributor

This issue isn't confined to macOS. When I try to program SPI flash using the 64-bit Linux build the same issue occurs:

$ openFPGALoader -b nexysVideo -f test.bit
write to flash
Jtag frequency : requested 6.00MHz   -> real 6.00MHz  
Open file DONE
Parse file DONE
use: /yosyshq/share/openFPGALoader/spiOverJtag_xc7a200tsbg484.bit.gz
Error: fail to open /yosyshq/share/openFPGALoader/spiOverJtag_xc7a200tsbg484.bit.gz
Error: Failed to program FPGA: Error: fail to open /yosyshq/share/openFPGALoader/spiOverJtag_xc7a200tsbg484.bit.gz

File location:

$ ls -l /opt/oss-cad-suite/share/openFPGALoader/spiOverJtag_xc7a200tsbg484.bit.gz
-rw-r--r-- 1 root root 10787 Apr 17 13:53 /opt/oss-cad-suite/share/openFPGALoader/spiOverJtag_xc7a200tsbg484.bit.gz

This issue occurs in both 2023-03-01 and 2023-04-17 64-bit Linux releases of oss-cad-suite.

@mmicko
Copy link
Member

mmicko commented Apr 17, 2023

I have added issue on openFPGALoader trabucayre/openFPGALoader#333, since location of files is hard coded when compiling, and currently can not be altered after, so requested feature to be able to do this.

@mmicko mmicko closed this as completed in 86e4504 Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants