Altera_Forum
Honored Contributor
10 years agoquestions about sdram and flash
1.in nios system,is there any problem if i install code in sdram and use sdram as data storage device at the same time?
in my project, after build the software, it shows: Info: (test2.elf) 61 KBytes program size (code + initialized data). Info: 8130 KBytes free for stack + heap. the code + initialized data only occupy a little space. the rest of the sdram are free for stack+heap. if i use some space of the sdram, for example: from SDRAM_BASE+0x30000 to the end, will the stack + heap also use these space? may that cause something unpredictable happen? what can i do if i want to use sdram as code storage and data stroage? 2.does a big c code need a big flash? i want to use max10, but the onchip flash is very limited, only 280KB in 10M08. if my c code in nios is big, does it needs a bigger flash? if in that case, the max 10 is less attractive