This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing external RAM for heap allocation.

Hi,

I have two RAM on my board.

I am using external ram which starts with address : 0x6000000
External RAM size : 1Mb

Internal ram which starts with address : 0x2000000
Internal RAM size : 128 kb

As I am running out internal ram. I starts using external ram for global variables. which is not idea.

I specify use external ram per cpp file properties in Keil IDE. these files have global variables. This works but not pretty to maintain.

All heap and stack use internal ram.

How I can use external ram with heap. Can I use Keil Memory pool functions with external ram access?
Do I need to overload new and delete operators?

I am do want to use heap allocation for some pointer on internal ram.

External RAM is slow access.

Thanks,
Naeem