hi, I'm using winarm package, so gcc is the compiler. I would like to use internal SRAM for the local variables, etc.. but I need some relative big blocks of memory stored in the external memory. I can read/write external memory "by hand", but I think I don't need to write a memory manager, I can simply use malloc. (I hope) I have one question, how? :) sa@m > > > > How it is possible to allocate memory in the external ram? > > I'd try this > > "-Wl,--defsym=__heap_start=0x81000000, > --defsym=__heap_end=0x81ffffff" > > > > Is it ok? > In general, you need to call some kind of subroutine to properly > initialize your heap/memory manager. Since I do not know which tool > you are using, I cannot give you more information here. > > > > How can I mix internal sram with external space? > Absolutely, I do this all the time. What exactly do you want to do? > > Ken Wada > > > > Thanks!! > > > > Andrew
Message
Re: malloc external memory
2005-08-30 by szemzoandras
Attachments
- No local attachments were found for this message.