trabucayre / openFPGALoader

Universal utility for programming FPGA
https://trabucayre.github.io/openFPGALoader/
Apache License 2.0
1.18k stars 251 forks source link

Error writing to flash #268

Closed Onicc closed 1 year ago

Onicc commented 1 year ago

Hi,

I write bitstream to RAM everything works fine, but write to flash I get an error.

$ openFPGALoader -c ft232 -b zybo_z7_20 -f led_twinkle.bit
write to flash
Board default cable overridden with ft232
Jtag frequency : requested 6.00MHz   -> real 6.00MHz  
Open file DONE
Parse file DONE
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7z020clg400.bit.gz
Error: fail to open /usr/local/share/openFPGALoader/spiOverJtag_xc7z020clg400.bit.gz
Error: Failed to program FPGA: Error: fail to open /usr/local/share/openFPGALoader/spiOverJtag_xc7z020clg400.bit.gz

Host: Ubuntu20.04 amd64 Board: xc7z020clg400-2

trabucayre commented 1 year ago

As mentionned in the documentation write to flash is not available through JTAG. The SPI Flash is connected to the PS part and can't be acceded from FPGA. I'm agree the error is not explicit for this specific case and a check must be done at CTOR level with a better error message.

trabucayre commented 1 year ago

with commit openFPGALoader will no more tried wrongly to write bitstream for xc7z devices.

trabucayre commented 1 year ago

It's good to you? can I close it?

Onicc commented 1 year ago

Yes, it's safe to close this issue, added error messages are more appropriate.