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.

AM68: linker copy table question

Part Number: AM68


Tool/software:

Hi, 

I have some code I want to load in the external SDRAM and copy to DSP L2 at boot and run from there.  I'm struggling to follow the documentation to get this working.
So far I have:

SECTIONS
{
    ...
        .l2_code:               load > __CORE_DDR_SPACE, run > __CORE_L2_SPACE
}

and .l2_code is done with a PRAGMA;
#define CODE_SECTION_INT        PRAGMA(SET_CODE_SECTION(".l2_code"))
which I place before the various functions I want in .l2_code.

So in the map I get: 

.l2_code   0    0000a6528240    00003400     RUN ADDR = 000064810000
                  0000a6528240    00000f80     input.obj (.l2_code)
                  0000a65291c0    00000d80     process.obj (.l2_code)
                  0000a6529f40    00000940     effect.obj (.l2_code)

                                    ...

which looks good, but now I can't figure out how or where to make a copy table which will move the .l2_code section from __CORE_DDR_SPACE to __CORE_L2_SPACE at boot.

Can you show me what needs to happen to move the code at boot?

Thanks,
Matt