Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThank you Daixiwen for your answer.
After some modification in the code given above.Now, i can write and read to/from my flash device. But the problem i'm facing is that my data written to the flash are shifted, i can see that in the debug mode using the Memory. For example when i Write in the address 0x04FC0000, the data 0x3fa00000, Instead i see 0xF1050000. It seems to be shifted. The routine that writes is : /* write to flash 32 bits at a time */ IOWR_32DIRECT(epcq_flash_info->data_base, write_offset, word_to_write); word_to_write = 0x3fa00000. It's very strange. Do you have an idea what would be the problem? Thank you in advance. Best regards