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.

EDMA3 code size problem

Hi

I am using EDMA3 in my new code. I have observed that the size of my code has increased by almost 40 Kb and this is due to the EDMA3 driver calls which uses some DMA libs. I have limited L2 memory and i could not afford to have a 40Kb increase in code size. I am planning to move the libs (code) to external memory.

Is there any why by which we can directly make the entire lib to sit in external memory? I mean something through linker command file or in BIOS cfg.

One way i can think of is use DATA_CODE pragma for the functions defined in lib and called in my application.

Can you suggest any other better way?

Thanks

Abhishek

  • Hi Abhishek.

    Abhishek Singh Sisodia said:
    Is there any why by which we can directly make the entire lib to sit in external memory? I mean something through linker command file or in BIOS cfg.

    You can set this up in the linker command file. Create a new section name, specify the memory range and the library:

            .dmalib: > SDRAM
            {
                nameofdma.lib (.text)
            }

    Details are covered in section 7.5 of:

    http://www.ti.com/lit/ug/spru186v/spru186v.pdf

    I suggest reading it for more specifics.

    Thanks

    ki