Hi, I have a program which needs to allocate high memory with calloc, but I want to load the app on the BRAM, so I wish to configure linker script so heap resides on the SDRAM. Is it possible?. Does anyone try to do this?
Could malloc/calloc get memory from SDRAM, while main program loads from BRAM?.
Jun 11, 2007
5 Replies
Yes It works fine, I've used it several times, just dispatch things in the linker script. But be we have a problem, when we reset the firmware, heap gets full and heap initialization get false as the heap pointer reaches memory upper limit. For now we can't get the to reset the heap pointer, so if you have a solution please let me know !
"Pablo" a écrit dans le message de news: snipped-for-privacy@q66g2000hsg.googlegroups.com...
a
How do you configure the linker script?. Only stack and heap for the sdram and the rest of the parameters to the bram?
Thanks
a
If I configure Heap and Stack for SDRAM in linker script, the program doesn't run.
Just start with the heap in the sdram, experiment with a little firmware for test.
"Pablo" a écrit dans le message de news: snipped-for-privacy@a26g2000pre.googlegroups.com... > Yes It works fine, I've used it several times, just dispatch things in the
If I configure Heap and Stack for SDRAM in linker script, the program doesn't run.
for
the
ve
Xilinx doesn't allow to place heap and stack in separate memories. So I have to place both in Sdram. Any test run with this configuration in my Spartan 3E starter kit.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required