Forum Discussion
Altera_Forum
Honored Contributor
15 years agoFlash memory problem
Hello, is it true that I cannot write 1MB of data into flash memory (4M)? I am using Altera DE2 Board. My code is as follow: --- Quote Start --- # include <stdio.h># include <stdlib.h...
Altera_Forum
Honored Contributor
15 years agoThe -5 means EIO code (see errno.h file)
This can be generated if HAL driver can't erase the flash block. Are you sure the flash is not write protected? Then, try initially to write a small amount of data, not the complete 1M buffer.