Forum Discussion
Altera_Forum
Honored Contributor
15 years agowhere does code resides
one small querry.. when i use external SRAM in my design using nios2 for DE1 board my code wil be placed there in sram .. i want my code to be in onchip memory.. not sram.. how to do this..please he...
Altera_Forum
Honored Contributor
15 years ago1) each section can be mapped to a different mem location
2) .rodata: read only (constant) data .rwdata: read/write data, i.e. all your program variables .text : program code For further information browse the Nios literature: http://www.altera.com/literature/lit-nio2.jsp In particular you find the information about memory sections in the Nios Software Developer's HandBook Regards