Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHey.... Guys.. i have somehow managed to store and retrieve data from free space in EPCS. But have a problem.... I followed method explained in http://www.alteraforum.com/forum/showthread.php?t=27724 this thread...
So i am going to the last block starting address and writing a value... and am able to read the same and print.... Suppose i wish to write a second variable where should i start ? I am writing a char array of 16 bit for the first value... so if i have to write a similar value adjecent to the first, what must i do ? I tried something like this... alt_write_flash(p_epcs_fd,addr+sizeof(def_ctr),&def_ptr,sizeof(def_ptr)); for second value.. but am getting wrong value when i read the location.