Forum Discussion
Altera_Forum
Honored Contributor
13 years agoStoring values as non-volatile in SRAM during RUNTIME
:confused: I am working on a meter based on Cyclone III (using all logic on Quartus and display related using NIOS). i now want to store/change some value during run-time and recollect on consequent...
Altera_Forum
Honored Contributor
13 years agoOk guys.. i got it going... there are host of API's available in the controllers "altera_avalon_epcs_flash_controller.h" and flash "sys/alt_flash.h"
alt_epcs_flash_erase_block(p_epcs_fd,addr); alt_epcs_flash_write_block(p_epcs_fd, 0, addr, &def_ctr, sizeof(def_ctr)); alt_read_flash(p_epcs_fd, addr, &def_ctr_rd, sizeof(def_ctr_rd)); you can refer threads below... http://www.alteraforum.com/forum/showthread.php?t=27724 http://www.alteraforum.com/forum/showthread.php?t=18461