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.

How to define an address memory in L2 memory?

Hi, I'm having problems to define an address in L2 memory.

I'm using de EDMA3 for DM6437 and I'm trying to follow the defination of memory like in SPRAAN4 docs.

So, in my project is being defined:

#define DATA_SECTION( bufExt1, ".ExtBuffer" )

#pragma DATA_ALIGN ( bufExt1, EDMA3_CACHE_LINE_SIZE_IN_BYTES );

unsigned char bufExt2[345600]; //for use only Y of the frame read from TVP.

 

So, I need to read for analyze only a part from Y, so I defined (like the function test_2D2D_nointr() in SPRAAN4):

#define DATA_SECTION( bufL2, ".L2Buffer" )

#pragma DATA_ALIGN ( bufL2, EDMA3_CACHE_LINE_SIZE_IN_BYTES );

unsigned char bufExt2[5000];

 

The problem is that the bufExt2 is being created in 0x81047080 address memory in DDR2 (I think it's right) but the bufL2 is being created in 0x10E08000 that is in L1P address memory and no in 0x10800000 address memory for L2.

Obs. When I buid my project is showed:

>> warning: creating output section .ExtBuffer without SECTIONS specification

>> warning: creating output section .L2Buffer without SECTIONS specification

I try to create a extra .cmd file and include in my project for build together but it stop in ISR.

I'm using L1P, L1D and 64K for L2 cache.

So, could someone tell me what's the right way to define address memory!

  • Are you using DSP/BIOS? If so, try creating a second linker command file by doing something like this:


    -l C:\Whatever_Directory\your_bios_file.cmd /* This appends the contents of your other cmd file here */

    SECTIONS{
      .ExtBuffer > DDR2 /* Or whatever your external memory section is named */
      .L2Buffer > L2RAM /* Or whatever your L2 memory section is named */
    }


    Add this file to your project, then right click on the bios-generated cmd file and go to file-specific options. In the top left you should see a checkbox to exclude the project from build. Because the second cmd file is linking in the bios-generated file not excluding the file from build will cause multiple repeated declaration errors.

    If you have trouble getting this to work please submit a request at http://support.ti.com and PM me the Service Request # you receive.

  • Thank you Tim.

    It's working now.