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.

C6678 MSMCSRAM setting ?

As for TI6678 memory map, MSMCSRAM area is 0x0c00_0000 - 0x0c3f_ffff.

And I want to reduce MSMCSRAM 0x0c00_0000 - 0x0c1f_ffff and use 0x0c20_0000 - 0x0c3f_ffff exclusive.

The reason for this setting is I want to use upper half of MSMCSRAM area for PCIe DMA area (for my own application)

and I do not want QMSS or CPPI or another shared resource collide with my DMA data.

So my question is:

1. Could this be a accaptable approach? (devide MSMCSRAM area) ?

2. How can I change MSMCSRAM area to 0x0c00_0000 - 0x0c1f_ffff ?


Regards,
Stellar

  • I'm not sure what collisions you're concerned about, that said this is easily achieved.  You just need to define the memory sections in your linker command file as you want it.

    Best Regards,
    Chad 

  • hi

    you can look at memory map of sv01

    they have already done this for L2SRAM

    devided it into l2sram l2sramovly

    most of the time i dont have to do such thing, i get my work done by making new section

    rather than naming a new memory.

    you will face problem while debugging, if new memory arrives, you will be required to make new platform

    in ccs with new memory, so if it is possible avoid it.

    thanks

    anshul

  • Stellar,

    You can use methods described in the Assembly Language Tools Reference Guide to force the allocation of memory at the top of the MSMCSRAM space.

    In your code, create an allocation of memory that will fill the space you want to set aside for the PCIe activity, such as:

    #pragma DATA_SECTION( PCIe_memory_buffer, "PCIeMem" )
    unsigned int PCIe_memory_buffer[512][1024];

    I am not certain that the large allocation is legal, but the idea is to create a large buffer that will take up the space. I think this will work, though.

    Create a second "user" linker command file, such as mylink.cmd, and put the following into it:

    SECTIONS
    {

    PCIeMem: {} > 0x0c200000   /* Place at mid-point of MSMCSRAM memory. */

    }

    You can study the ALT guide for more options, if this is not good for your case.

    Regards,
    RandyP