Forum Discussion
Altera_Forum
Honored Contributor
13 years agoNios II erase sector
I'm working on cyclone III with the EPCS64, in my Nios code C the time delay of erasing for one sector is defined at 3 seconds to be sure of the erasing, I would like to know if there is a way to ...
Altera_Forum
Honored Contributor
13 years agoAssuming it is NOR flash, you repeatedly read the flash's status register until it indicates that the sector is written.
I'd have thought that alt_epcs_flash_erase_block() already did that - IIRC you can't do any other flash cycles until the ease completes (it is a long time since I wrote NOR flash code). You should have the source for the flash functions - look at what they do.