trabucayre / openFPGALoader

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

Update spiFlashdb.hpp for Macronix MX25L3233F used on Cmod A7-35T #425

Closed sigmaeo closed 9 months ago

sigmaeo commented 9 months ago

Digilent changed from Micron N25Q032A to Macronix MX25L3233F in 2020/2021, so this flash is needed in openfpgaloader to load to Cmod A7-35T

sigmaeo commented 9 months ago

I forgot to mention that I also tested the patch:

openFPGALoader -b cmoda7_35t -v -f  FPGA.bin

write to flash
Jtag frequency : requested 6.00MHz   -> real 6.00MHz
found 1 devices
index 0:
        idcode 0x362d093
        manufacturer xilinx
        family artix a7 35t
        model  xc7a35
        irlength 6
File type : bin
Open file DONE
Parse file DONE
use: /usr/local/share/openFPGALoader/spiOverJtag_xc7a35tcpg236.bit.gz
load program
Load SRAM: [==================================================] 100.00%
Done
c2 20 16 c2 read c22016c2
Detected: Macronix MX25L3233F 256 sectors size: 128Mb
RDSR : 40
WIP  : 0
WEL  : 0
BP   : 0
TB   : 0
SRWD : 0
nr_sectors : 0
00000000 01000000 00ffffff 40
Erasing: [==================================================] 100.00%
Done
Writing: [==================================================] 100.00%
Done
trabucayre commented 9 months ago

Applied. Thanks @sigmaeo !