Forum Discussion
MT25Q512 Programming Issue When Connected to Cyclone 10CX150Y
Hi,
Thank you for your response.
I noticed an important difference in the behavior depending on whether the FPGA has previously been programmed:
- When I assemble a new FPGA from stock, I can successfully perform Erase, Program, and Verify on the MT25Q512 using the QSPI programmer.
- I then program a JIC file through Quartus.
- Afterward, I read back the Flash contents using QSPI programmer and save the readback data as a binary file.
- When I subsequently perform Erase, Program, and Verify using QSPI programmer, the Verify operation fails.
- During readback after the failed programming attempt, all Flash memory locations contain 0x00 or 0xFF.
Throughout the external programming process, nCONFIG is held low and nCE is held high, as previously recommended.
This behavior suggests that programming the JIC file through Quartus changes the condition of the FPGA or the QSPI interface in a way that prevents subsequent external Flash programming.
Could you please advise whether JIC programming may affect the FPGA configuration pins, QSPI pin behavior, or any persistent FPGA setting that could cause this issue?
Also, is a specific power-cycle or initialization sequence required after JIC programming before the MT25Q512 can be programmed externally again?
Best regards,
Aviram
Hi Aviram,
Thank you for the details. Since external programming works before JIC programming, the issue is more likely related to the MT25Q512 flash state or addressing mode than to a persistent FPGA pin setting.
Please try this sequence:
- Fully power-cycle the FPGA and flash.
- Hold nCONFIG low and nCE high before any QSPI activity.
- Run the external programmer’s complete MT25Q512 initialization before Erase/Program/Verify, including flash reset, protection clear, and the correct 4-byte/Quad-SPI settings.
The nCONFIG/nCE condition remains the correct method for tri-stating the FPGA QSPI pins.
Regards,
Fakhrul