Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI don't know if it applies to your system, but on my designs I layout my EPCS flash locations as:
Address 0: Factory SOF Address (-after Factory SOF): Factory Software Address 0x500000: Application SOF Address (-after Application SOF): Application Software Where -after is done using the --after switch in my programming script (for the NIOS II command shell) Example below: sof2flash --input=fpga_factory.sof --output=fpga_factory.flash --epcs --verbose elf2flash --input=software_factory --output=software_factory.flash --epcs --after=fpga_factory.flash --verbose This is done since the bootloader normally points to the starting address of your .SOF (normally 0, my modified code points to 0x500000). From here it determines the size of your .SOF and seeks to the end to look for your software. I hope this helps.