Forum Discussion
Altera_Forum
Honored Contributor
15 years agochange your print to this :
printf("Value at %X is %u, written is %u\n", p2, *p2, IORD(p1, i); would help verify your write buffer is correct. Also, make sure your length of SIZE is correct for what you want, it does not match what you are writing into the flash. Also, it should most likely be 0x100000 if you ware trying to do 1MB, not 0xFFFFF.