0
\$\begingroup\$

I am trying to access in read and write my EPCQL-1024 from simple soft running in NIOSII. I have the Altera Serial Flash Controller I configured in QUAD mode connected from its avl_csr and avl_mem to the NIOSII. I have tried to access in read and write the EPCQL registers (STATUS, Device ID) and the controller registers FLASH_ISR, or FLASH_IMR, it have been successful. But when I need to erase sector or write to memory. Here lies my problem; I can run nothing on board until power off. When reading the values back from the EPCQL or execute a simple access , it seem to return erroned values. I also tried reading the status register to see if there are processes occurring, but it always reads 0x0. After repower and reloading .sof, the read data are correct. Also when I try to read either the FLASH_ISR, or FLASH_IMR, the EPCQL seems to stop responding and I need to power off then reload my .sof. I am not sure where to start debugging this and if t's by definition, a flash memory needs a power off after each write operation, then how to write many data at a time to same or different sectors. Any help or points in a direction would be much appreciated.

Thank you in advance :)

\$\endgroup\$
  • \$\begingroup\$ The first thing you must do is to check your design against compliance to the algorithms described in manuals (inlcuding application notes for IP). Maybe you do not set write enable? From your explanation if not clear what happens and when. For example, you write "After power off, the read data are correct" - how you can read data when chip is powered off? \$\endgroup\$ – Anonymous Jan 17 at 11:18
  • \$\begingroup\$ Your reply is appreciated....thanks :) I mean after repower and reload .sof again. I have tried to read the written data and as expected the values back are those written previously (before the power off) which means that the data have been correctly written into the memory. I am using the Altera Flash controller I connected to NIOSII, what is matter here is why do I need to repower the chip after each write or erase sector (write '1' to all sector bits) \$\endgroup\$ – Chloé Russell Jan 17 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.