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.

error placing code in L1PSRAM

Hi All,

    I am using DAVINCI 6446 platform for a image processing algorithm. I want to use #pragma CODE_SECTION for putting a part of my code to L1PSRAM. When i tried to do this, i am getting a run time error on the target as..
                                       Error: DSP-side memory map does not match configuration.
                                      Compare DSP-side TCF/MAP file with /dsplink/config/all/CFG_<PLATFORM>.c
                                      TraceUtil> Error: Failed to open codec engine "image_alog
                                      TraceUtil> Error: Aborting TraceUtil_start
   

    I tried to change the CACHE_L1P with default 32k to 16K or OK and make L1PSRAM 16K or 32K respectively. But when ever I try to change CACHE_L1P to L1PSRAM and put code into L1PSRAM, I am getting the above error. My configurations are as follows..

          1.      change in server .tci file. This makes L1PSRAM 32K or 16K

                      var device_regs = {
                                                        l1PMode: "0k",  // "16K"             
                                                        1DMode: "32k",
                                                        2Mode: "64k",
                                                        l1DHeapSize: 0x04000
                   };

          2.       Change in codec source code. To put exFunction in .exe_Sec section.

                    #pragma CODE_SECTION(exFunction, ".exe_Sec");      
                    int exFunction()                                                                     

                    {                                                                       

                    }

         3.       Change in server link.cmd file. To put .ex_Sec to L1PSRAM.

                    SECTIONS {                                           

                                          .ex_Sec: > L1PSRAM

                                         }

Query:

1. Why am I not able to put code to L1PSRAM?

2. Can I use L1PSRAM in DM6446 for putting code into it, or it can only be used as CACHE_L1P?

3. Is the procedure for using code section proper? Please suggest if there are are any changes.

4. Can we use IRAM for putting code into it? When i tried to do with IRAM also i am getting the same error as of L1PSRAM.