Forum Discussion
Altera_Forum
Honored Contributor
15 years agoalt_read_flash()
Hello, What is the meaning of 5000 in alt_read_flash(fd, 0, dest, 5000)? I cannot understand the arguments inside alt_read_flash. I read a few articles and notes but still cannot get its meanin...
Altera_Forum
Honored Contributor
15 years agoCorrect. You write however many bytes you would like to read out in that field. You can look at some of the memtest examples for their usage of it as well.
You do have to play nicely with the region size though if you are managing the file locations yourself. So, don't expect to write a partial block and not have the other contents of that block erased. But that is a whole other topic kinda.