Hello,
I try to setup a SW environment for a Board with a NXP LPC2468 and an external static memory Chip, using uVision4 and the Keil RTX. I want to use the external RAM as standard Heap (not for program execution). The EMC Controller should be configured correctly, because accassing the external memory manually from the program code works fine. But then I try to configure uVision to use the external RAM as default memory, the program crashes at startup.
Can anyone provide a small sample project how to configure uVision and RTX, using the external RAM as heap?
I have a MCB2468 Eval Board with the LPC2468 + external SDRAM. I want to configure uVision for: program execution in internal FLASH / using internal and external RAM for STACK and HEAP / using RTX
Thanks!
Gunnar
You have to initialize external memory interface - as soon as possible after reset - in the startup.s (or whatever thg name is) file. Otherwise, C environment intialization routines, which are called BEFORE your main() code won't be able to access external RAM. I hope this helps.
regards
Dejan
I have configured the EMC within the startup file, using the uVision configuration wizzard. Is that the correct position to do, or do I have to setup an extra initialization file?
best regards, Gunnar
Yes, that should be enough. You also have to tell linker where that RAM is located (Project Options -> Target -> Read/write memory areas), so your project can be linked accordingly.