Forum Discussion
Altera_Forum
Honored Contributor
10 years agoDaixiwen, thank you for the reply! My DDR3 memory it not being used for heap in the linker script.
The issue is probably in my linker script. For some reason the linker script NEVER adds either or my 'sdram' or 'sdram2' devices upon BSP generation. My DDR3 does not show up at all, but clearly it knows it's there, as I can see it when I click on the "Memory Map" button. linker script tab (http://i.imgur.com/aetvh4o.png) memory map window (http://i.imgur.com/3pwdhvn.png) I tried manually adding an 'sdram' Memory Device to the linker, but it said it could not be found in the SOPC Design. At this point the 'sdram' device I created is now overlapping addresses with the real one, but I tried pointing it to the heap anyways, then compiling. The program immediately gave an error in the Nios Terminal, something to do with panic/allocation I believe. I tried generating a BSP from one of the DE2-115 sopcinfo files as a test, and it shows the sdram in the linker script just fine. Is it because the SDRAM component I am using is 2048Mbit/256MByte? Is the address span too large (28 bits)? What if I attach the sdram to the Instruction Memory port. Would that force generation in the Linker Script? If you have any suggestions, let me know. For now I am going to directly attach the SGDMAs to the onchip_mem and see if I can get it working that way. Thanks