Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThanks. I think where I went wrong is my assumption that the EPCS bootloader is loaded like onchip memory. It's not and must be part of the hardware (SOF) information. The memory (512 bytes) where the EPCS module is located is not read/write. Therefore, it is not loaded by the data in the .flash file created by the NIOS II tools. I thought it was added to the .flash at this time but it appears to be in the SOF to begin with.
I suspect if you want to include the bootloader in the application (specifying an onchip RAM section for it's location) then you could point the reset vector to this onchip RAM section. I'm not the hardware builder here so I can't test it. It might be nice to know if this works. Then the RAM used by the bootloader could then be reused by the application once it's up and running. Bill