Altera_Forum
Honored Contributor
11 years agoEpcs with locked sectors
Hello,
this is my first post on this forum, so, first at all, best regards to everybody. I want ask you for help about locked EPCS. Symptoms are as follow: when I try to erase or program EPCS (by script commands or Flash Programmer or Remote Update function in Nios) then I don't see any error. All seems to be OK. Difference is only in time of this operation (locked EPCS is much faster). But after that, my EPCS still have old contents. Changes are not saved in flash. I run command <nios2-flash-programmer> with option --debug. There is a line: "EPCS status is 0x9C" or "EPCS status is 0x9E" other board (where EPCS isn't locked) show me: "EPCS status is 0x0" Base on Altera "Serial Configuration (EPCS) Devices Datasheet.pdf" this value (0x9C or 0x9E) means that all sectors in my flash are locked (protected). Question is (surly easy for experts): How can I ublock sectors? I read many threads on this forum. It seems that, this blocking shouldn't happen. But it did. In mentioned above pdf I see in chapter "Write Status Operation" what phisilcally I should do. But I can't find answer, how to solve this in easy way. Some special .jic file for Quartus programmer? Add to quartus project module ALTASMI_PARALLEL and by this way program Status Byte? At the end I though to build (in i.e. VHDL) module, those will send data, as it is described on picture "Write Status Operation Timing Diagram" (in the same pdf) - bit by bit (not yet done). I use custom board with Cyclone III EP3C16 and EPCS64. For debugging I use USB Blaster and Quartus 13.1. Board IMHO is OK. It was developed 3 years ago, and work well (including Remote Upgrading EPCS by Nios). Any ideas how to unprotect this EPCS? best regards, Gregor