Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi Daixiwen,
Thank you for taking time to resolve my problem, I appreciate it. 1) Yes, i can get the correct information about the device as shown below : This flash has 1 erase regions start 0x00000000 End 0x00800000 Number of Blocks 128 Block Size 0x00010000 2) The device is closed only when is fails to open. So i don't need to reopen it when i want to write or read. 3) I removed the global to local variables as you suggested and always the samehttps://www.alteraforum.com/forum/attachment.php?attachmentid=11017 thing. 4) I put printf of the fd and test_offset before Write_flash and Read_flash and are the same for both function. The offset is tested and it is not out of bounds. 5) I get the same wrong values each time, you find enclosed a picture about these values. Best regards