Altera_Forum
Honored Contributor
14 years agoBoot NIOS from on-chip memory ONLY
I'm trying to use a NIOS on a custom board. As there is no JTAG interface, I need an alternative method for downloading my software to the NIOS once it is initialized.
Many of the examples out there I have seen utilize either the CFI or EPCS to take advantage of the on-board flash memory to store the software code. However, this board has no flash memory either, so it appears that I will have to rely solely on on-chip memory to accomplish this task. I am thinking I will need to write a custom boot loader which will reside in some on-chip ROM to read the software code out of some other location in ROM and copy it over into RAM prior to jumping to the execution point in RAM. First of all, does this sound like a valid approach to booting the NIOS? If so, if I write a custom boot loader and compile it to and elf, how does one convert it to the proper hex format so it can be used to initialize the ROM? Thanks in advance for your input!