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

Setup heap on external RAM

Hi

I have a board with external RAM and I'm using it quite well, except that I wrote my own malloc and free, which works fine, but I rather use the malloc and free that comes with standard library, I know that wheel will be more reliable than the one I made.
Where is the linker script? I'm using uVision4 IDE and Keil as my compiler.
Basically I want to define heap in a different segment other than the internal RAM of the MCU.
If you can post me an example that will much appreciated.

Thanks
Alejandro

Parents
  • Hi

    I went to the Project options (target) and defined an external RAM with start address and size. So the question now is how can I define that that RAM is for the heap segment, so standard lib does use it for malloc/free.

    Thanks
    Alejandro

Reply
  • Hi

    I went to the Project options (target) and defined an external RAM with start address and size. So the question now is how can I define that that RAM is for the heap segment, so standard lib does use it for malloc/free.

    Thanks
    Alejandro

Children