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.

AWR1642BOOST: use the shared memory between MSS and DSS

Part Number: AWR1642BOOST

Hi,

I have large data that I need to send between MSS and DSS( on both way). I saw mmw_demo  has declared one in dss_main.c as below:

*! DSS stores demo output in HSRAM */

#pragma DATA_SECTION(gHSRam, ".demoSharedMem");

#pragma DATA_ALIGN(gHSRam, 4);

void *gHSRam;

And data goes from DSS to MSS one way.

In my case, I need to use the shared memory on both way; I need help on the following questions.

1. how to modify the linker file for MSS?

2. can the shared data section declared by MSS and DSS on the same physical location? assuming I can manage for MSS and DSS not to write to the memory at the same time.

3. on the other side , if I want them on different physical location, how  to set offset?  I would like to have an example of the linker and data section declaration like the above, both for MSS and DSS.

It is urgent work, your prompt response is highly appreciated!

Best regards,

Xinsi Lin       

  • Hello,

    To use sharedMem (HSRAM) on both cores (MSS & DSS)

    If MSS and DSS use full HSRAM and

    points to same memory location

    mss_main.c 

    #pragma DATA_SECTION(gHSRam, ".demoSharedMem");
    #pragma DATA_ALIGN(gHSRam, 4);
    void *gHSRam;

    mss_mmw_linker.cmd

    SECTIONS
    {
    systemHeap : {} > DATA_RAM
    .demoSharedMem > HS_RAM
    }

    If MSS uses second half of HSRAM 


    mss_main.c 

    #pragma DATA_SECTION(gHSRam, ".demoSharedMem");
    #pragma DATA_ALIGN(gHSRam, 4);
    void *gHSRam;

    mss_mmw_linker.cmd

    SECTIONS
    {
    systemHeap : {} > DATA_RAM
    .demoSharedMem > HS_RAM_1
    }

    r4f_linker.cmd

    HS_RAM (RW) : origin=0x52080000 length=0x4000
    HS_RAM_1 (RW) : origin=0x52084000 length=0x4000

    DSS uses starting half of HSRAM

    dss_mmw_linker.cmd

    SECTIONS
    {
    systemHeap : {} > DATA_RAM
    .demoSharedMem > HSRAM
    }

    c674x_linker.cmd

    HSRAM: o = 0x21080000, l = 0x4000
    HSRAM_1: o = 0x21084000, l = 0x4000

    Regards,

    Jitendra