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 agoOk, did it and just see that alt_epcs_erase_block() send back 0 when it's ok otherwise another value.
So I did something like this while(alt_epcs_flash_erase_block(p_epcs_fd,epcs_addr)) OSTimeDly(OS_TICKS_PER_SEC); is it good to do this or am I completely wrong