Altera_Forum
Honored Contributor
20 years agoA problem of using sdram
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif
Hi all, I found a problem of using sdram as stack memory (configured in the sys lib properties in the NiosII IDE(5.0e)). When I configured all the type of memory in the sys lib properties into "sram", everything went pretty ok, and when I changed the configuration of heap momory into sdram,it was still all right;however,when I converted the selection for stack memory from sram into sdram(that meaned the stack memory and heap memory were all in sdram at the moment),my program went out of order! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif You see,this is the result when I ran count_binary.c in NiosII IDE: ----------------- nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "ByteBlasterII [LPT1]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) * Hello from Nios II! * ...(some starnge codes continue here,I can not copy them here, it seems the BBS does not support displaying those codes) nios2-terminal: exiting due to ^D on remote ----------------- But infact the result should not be like this,and I did see the should-be correct result when I configured stack memory as sram previously. So could anyone give me some tips about that? Thanks in advance!