Forum Discussion
Altera_Forum
Honored Contributor
15 years agoBootloader Elf2Hex Woes
I'm trying to do the seemingly simple task of putting the nios code in fpga ram blocks, and at power-on, the bootloader should copy the code from on-chip memory to external sram. In the sopc I ...
Altera_Forum
Honored Contributor
15 years agoA carefully crafted linker script should let you link most of your code to run from the SRAM address (while being loaded into the internale memory), then just add a small piece of code at the reset vector to copy the code to SRAM.
But I do wonder why you want to do this. If your code fits in internal memory then I would make it a tightly coupled instruction memory and execute from there - removing the i-cache. Unless you are later using the memory for something which has to be internal.