This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Placing NDK memory sections

In my application i dont have enough memory in MSMC and L2 RAM, so can i place some of the memory sections required to be used by NDK in DDR Memory. Im posting the configuration file contents for NDK working, please let me know if some sections can be moved into DDR memory. Pls guide

 

Can we change :

Program.sectMap[".far:IMAGEDATA"] = {loadSegment: "LL2RAM", loadAlign: 8};
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: "LL2RAM", loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: "LL2RAM", loadAlign: 128};

To:

Program.sectMap[".far:IMAGEDATA"] = {loadSegment: "DDR3", loadAlign: 8};
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: "DDR3", loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: "DDR3", loadAlign: 128};

What all memory sections can we change below to "DDR3" for successful running of the NDK EMAC:

Program.sectMap[".vecs"] = "LL2RAM";
Program.sectMap["emacComm"] = "SL2RAM";
Program.sectMap["systemHeap"] = "LL2RAM";
Program.sectMap[".switch"]  = "SL2RAM";
Program.sectMap[".sysmem"]  = "DDR2";
Program.sectMap[".args"]    = "DDR2";
Program.sectMap[".cio"]     = "LL2RAM";
Program.sectMap[".far"]     =     "LL2RAM";
Program.sectMap[".cinit"]     =     "SL2RAM";
Program.sectMap[".bss"]        =    "LL2RAM";
Program.sectMap[".const"]    =    "SL2RAM";
Program.sectMap[".text"]    =    "SL2RAM";
Program.sectMap[".code"]    =    "SL2RAM";
Program.sectMap[".data"]    =    "DDR2";
Program.sectMap[".taskStackSection"] = "LL2RAM";
Program.sectMap[".stack"]    =    "LL2RAM";

  • Santosh,

    Your latest post to this thread appears to be a new issue.  For reasons posted here, it is better for this to be put on a fresh thread, so I have split it off and placed it on the BIOS forum.

    Regards, Dave

  • Santosh,

    You should be able to put all of the NDK releated sections in external memory.  The NDK does require that your application have cache configured though (please see NDK user's guide and programmer's guide for details).  Note that by placing all of these things in external memory, you may see performance degrade ...

    Steve