Could malloc/calloc get memory from SDRAM, while main program loads from BRAM?.

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?

Reply to
Pablo
Loading thread data ...

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...

Reply to
sjulhes

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

Reply to
Pablo

a

If I configure Heap and Stack for SDRAM in linker script, the program doesn't run.

Reply to
Pablo

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.

Reply to
sjulhes

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.

Reply to
Pablo

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.