Ok, get it for writing to the FLASH that it takes a few ms, I noticed that everything works great when I place a timer of 10 ms before to write again in the FLASH, but with the alt_epcs_flash_read(...) like it takes only 100 ns to read datas from FLASH I shouldn't use a timer then, or a timer of 1ms for example but it doesn't work after awhile and the Nios software doesn't answer at any of my command, I noticed that when I place a timer of 1s everything works great for reading but it's very too long, do you have any idea how to solve this problem mmTsuchi ?
And how do you use a cache ?