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

initialize keil for use ezternal memory as heap

Hi
i have less experience in embedded systems and i am using lpc1788 micro With 2mb external memory on board.
I could successfully use from external memory(I could successfully use from it in tft lcd).
but I can not initialize keil to use from it as default heap location).
has any one experience to use external memory as heap?
can any one give step by step guide to me to do that?
and secondly question :
exist any problem for use 16 bit external memory in 32 bit microcontrollers?
excuse me for my bad English.
thanks for your attention.

Parents Reply Children
  • You have to configure the micro to use the external memory by programing/initializing it's external bus interface. This will require you to look at the documentation for the chips being used, and the specific configurations of your board. There should be examples/documentation showing you how to set up the memory.

    In the CMSIS model you'd want to add that into the SystemInit() function prior to the C run time initializes it's memory space and calls your main() function.

    There is no reason the memory cannot be used for all the normal applications, it will however be a bit slower to access.

    Your post does not convey and specifics about the SRAM chips, schematic or board. You should contact the board designers for support of their product.