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

malloc at LPC2294 with external RAM

Dear all,

I'm using a LP2294 with 1 MB external RAM and Keil RealView. The RAM is configured at 0x81000000 in the options dialog. Now I want to use a dynamic memory allocation by using malloc. I want to allocate 85kB. But malloc returns 0 all the time. In the map file I can see, that the value for the memory allocation is at 0x81000254.

Does anybody knows what goes wrong?

Thanks for the help,

Christian

Parents Reply Children
  • "There is no standard way to determine how much heap us used because:

    1) The C standard does not require a heap
    2) Different heap management schemes have different overheads
    3) It depends on how good your implementation is at reusing freed memory"

    But again if you analyze it simply it will be the sum up of all memory allocations like malloc, calloc and so on.