Thank you so much for you code
I have some trouble reading your code
In line 16 in the comment you mentioned that EPCS flash offset is 0x700000, where did that come from?
And also in the read section of your code for example line 23, where do you copy the read data?
In my scenario I have multiple NIOS II processor and I want my top processor to read the data from EPCS and write that data to the other NIOS II processor reset vector which is SDRAM memory and start executing
I believe I can modify your bootloader for my use
Please give me some suggestion