Forum Discussion
Altera_Forum
Honored Contributor
11 years agoAssuming your Nios has access to the EPCS, then you can simply use Nios to overwrite the contents of the EPCS from the base address - where the FPGA boots from.
However, you clearly need to be careful! Until you've completed the write you're clearly only 'corrupting' the FPGA's boot image. So, should it not complete successfully - a power failure/glitch - you'll end up rendering the unit useless, since the FPGA won't boot from the corrupted image, and without any means of recovering it. You imply you're writing new code to do this which suggests your Nios doesn't boot from the EPCS. Is that right? If so your Nios may not have access to the EPCS anyway. This is determined by the peripherals around the Nios currently in the FPGA. Typically it would need an 'epcs_flash_controller', although this could be another, 3rd party, peripheral with access to the EPCS. Without this it may well not be possible. Cheers, Alex