There is a problem with the Intel Serial Flash Controller II (Altera Serial Flash Controller II up to 18.0) driver that needs to be corrected.
This problem has been confirmed up to Quartus® Prime Ver. 18.1.
Specifically, the Write Enable Command is not issued to Flash before Sector Protect takes effect, so it is necessary to add this processing. The corrected file is attached.
- Attachment: altera_epcq_controller2.c
--------------------
Category: IP (Other)
Tool: Quartus® Prime
Device: EPCQ